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

Curl example ends up in Internal Server Error #30

Open
robinportigliatti opened this issue Sep 26, 2024 · 2 comments
Open

Curl example ends up in Internal Server Error #30

robinportigliatti opened this issue Sep 26, 2024 · 2 comments

Comments

@robinportigliatti
Copy link

Hello,

Just tried the example of curl in https://explain.dalibo.com/about :

$ curl -Ls -w %{url_effective} -d '{"plan":"Seq Scan on tenk1 (cost=0.00..333.00 rows=10000 width=148)"}' -H "Content-Type: application/json" -X POST https://explain.dalibo.com/new -o /dev/null

And when clicking on the url returned by the curl I get an Internal Server Error.

Robin,

@ivanrododendro
Copy link

hey @robinportigliatti, same problem here.

did you manage to solve it ?

@pgiraud
Copy link
Member

pgiraud commented Feb 26, 2025

The error come from the fact that there's no title provided in the body (-d option).

The following works:

$ curl -Ls -w %{url_effective} -d '{"plan":"Seq Scan on tenk1 (cost=0.00..333.00 rows=10000 width=148)", "title": "some title"}' -H "Content-Type: application/json" -X POST https://explain.dalibo.com/new -o /dev/null

Commit 87fa71e fixes the problem, but it hasn't been deployed yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants