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

Roc segfault when requesting data from certain pages #85

Open
adrian4096 opened this issue Dec 15, 2024 · 0 comments
Open

Roc segfault when requesting data from certain pages #85

adrian4096 opened this issue Dec 15, 2024 · 0 comments
Labels
bug Something isn't working high priority

Comments

@adrian4096
Copy link

app [Model, server] { pf: platform "https://github.com/roc-lang/basic-webserver/releases/download/0.10.0/BgDDIykwcg51W8HA58FE_BjdzgXVk--ucv6pVb_Adik.tar.br" }

import pf.Http

Model : {}

server = { init: Task.ok {}, respond }

respond = \_, _ ->
    dbg "req"
    { Http.defaultRequest & url: "http://www.gstatic.com/generated_204" }
    |> Http.send
    |> Task.await
        \x ->
            dbg x
            aa = Inspect.toStr x
            dbg aa
            Task.ok { body: "Womp womp" |> Str.toUtf8, headers: [], status: 500 }

This segfault upon request

@Anton-4 Anton-4 added bug Something isn't working high priority labels Dec 17, 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 high priority
Projects
None yet
Development

No branches or pull requests

2 participants