Generate a new project with pushup new and replace app/pages.index.up with:
^handler {
type DemoThing struct {
A string
B string
}
var globalThingPtr *DemoThing
}
<div>
^globalThingPtr.A
</div>
After running pushup run you will trigger a 503 error with a timeout error body rather than a 500 error:
$ curl --silent http://localhost:8080/
<html><head><title>Timeout</title></head><body><h1>Timeout</h1></body></html>
The 503 seems to come from http.TimeoutHandler but it is unclear why the errant pointer dereference is causing the timeout. If the same error is made in the ^handler block the expected 500 error is received.
Generate a new project with
pushup newand replaceapp/pages.index.upwith:After running
pushup runyou will trigger a 503 error with a timeout error body rather than a 500 error:The 503 seems to come from
http.TimeoutHandlerbut it is unclear why the errant pointer dereference is causing the timeout. If the same error is made in the^handlerblock the expected 500 error is received.