Back

[Solved]Create collection REST API from cloud version got server error: general_protocol_unsupported

  • 0
  • Databases
  • Cloud
Rick
29 Oct, 2023, 10:12

I want to create a new collection using server REST API. I am passing API key, project ID to the server REST API, but I got this error

{ "message": "Server Error", "code": 500, "type": "general_protocol_unsupported", "version": "0.11.21" }

this is the request I sent: curl --location 'cloud.appwrite.io/v1/databases/651401e143419f3c3869/collections' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'X-Appwrite-Key: <API key>' \ --header 'X-Appwrite-Project: <Project ID>' \ --data '{ "collectionId": "unique()", "name": "devices", "permissions": [ "read(\"users\")", "create(\"users\")", "read(\"users\")", "update(\"users\")" ], "documentSecurity": true, "enabled": true }'

TL;DR
Title: [Solved] Error when creating collection using server REST API from cloud version Message: When creating a new collection using the server REST API from the cloud version, I encountered a server error: general_protocol_unsupported. Solution: Make sure to include "https://" in the URL.
Drake
29 Oct, 2023, 15:11

As mentioned in general, include the https:// in the URL

Rick
30 Oct, 2023, 02:19

[Solved]Create collection REST API from cloud version got server error: general_protocol_unsupported

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more