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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Server Error using GraphQL #8166

Closed
2 tasks done
stnguyen90 opened this issue May 20, 2024 · 1 comment
Closed
2 tasks done

馃悰 Bug Report: Server Error using GraphQL #8166

stnguyen90 opened this issue May 20, 2024 · 1 comment
Assignees
Labels
api / graphql Fixes and upgrades for the Appwrite GraphQL API. bug Something isn't working product / cloud Issues found only on Appwrite Cloud

Comments

@stnguyen90
Copy link
Contributor

馃憻 Reproduction steps

Create an account using the GraphQL API like:

PROJECT_ID="YOUR_PROJECT_ID"
curl -v 'https://cloud.appwrite.io/v1/graphql' \
  -H 'Content-Type: application/json' \
  -H "X-Appwrite-Project: $PROJECT_ID" \
  --data-raw $'{"query":"mutation CreateAccount(\\n    $email: String\u0021,\\n    $password: String\u0021,\\n) {\\n    accountCreate(\\n        email: $email,\\n        password: $password,\\n        userId: \\"unique()\\"\\n    ) {\\n      _id\\n    }\\n}","variables":{"email":"joe2@example.com","password":"Password123"},"operationName":"CreateAccount"}'

馃憤 Expected behavior

A new user is created

馃憥 Actual Behavior

Error:

< HTTP/1.1 500 Internal Server Error
< Cache-Control: no-cache, no-store, must-revalidate
< Content-Type: application/json; charset=UTF-8
< Date: Mon, 20 May 2024 17:27:38 GMT
< Expires: 0
< Pragma: no-cache
< Server: swoole-http-server
< X-Debug-Fallback: true
< X-Debug-Speed: 0.096704959869385
< Transfer-Encoding: chunked
< 
* Connection #0 to host cloud.appwrite.io left intact
{"message":"Server Error","code":500,"type":"general_unknown","version":"0.13.27"}%     

馃幉 Appwrite version

Appwrite Cloud

馃捇 Operating system

Linux

馃П Your Environment

No response

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@stnguyen90 stnguyen90 added bug Something isn't working api / graphql Fixes and upgrades for the Appwrite GraphQL API. labels May 20, 2024
@stnguyen90 stnguyen90 self-assigned this May 20, 2024
@stnguyen90
Copy link
Contributor Author

@stnguyen90 stnguyen90 added the product / cloud Issues found only on Appwrite Cloud label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api / graphql Fixes and upgrades for the Appwrite GraphQL API. bug Something isn't working product / cloud Issues found only on Appwrite Cloud
Projects
None yet
Development

No branches or pull requests

2 participants