[Solved]Create collection REST API from cloud version got server error: general_protocol_unsupported
- 0
- Databases
- Cloud
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
}'
As mentioned in general, include the https:// in the URL
[Solved]Create collection REST API from cloud version got server error: general_protocol_unsupported
Recommended threads
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, it’s mention that only setup client with endpoint / api key is enou...
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- No Document ID?
Hi I have a self hosted appwrite. My documents get a document ID but are not visible in the console. I don't know why this happens and how to fix this