Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic in markup template causes timeout #132

Open
dvogel opened this issue Oct 15, 2024 · 0 comments
Open

Panic in markup template causes timeout #132

dvogel opened this issue Oct 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dvogel
Copy link
Collaborator

dvogel commented Oct 15, 2024

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.

@dvogel dvogel added the bug Something isn't working label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant