Closed huonw closed 6 months ago
The "Share" button on https://play.strawberry.rocks/ is currently broken:
There's two network requests and both fail:
OPTIONS: response is a 500.
curl 'https://api.strawberry.rocks/graphql' -X OPTIONS -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'Access-Control-Request-Method: POST' -H 'Access-Control-Request-Headers: content-type' -H 'Referer: https://play.strawberry.rocks/' -H 'Origin: https://play.strawberry.rocks' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-site'
POST: doesn't seem to run, likely because the OPTIONs fails.
curl 'https://api.strawberry.rocks/graphql' -X POST -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'content-type: application/json' -H 'Content-Length: 463' -H 'Origin: https://play.strawberry.rocks' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Referer: https://play.strawberry.rocks/' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-site'
The playground is awesome! 🍓
Hi @huonw thanks for the repo, I fixed it 😊
Describe the Bug
The "Share" button on https://play.strawberry.rocks/ is currently broken:
There's two network requests and both fail:
OPTIONS: response is a 500.
POST: doesn't seem to run, likely because the OPTIONs fails.
System Information
Additional Context
The playground is awesome! 🍓