Skip to content

Panic in markup template causes timeout #132

@dvogel

Description

@dvogel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions