Back

showing server error on creating collection

  • 0
  • Self Hosted
  • Databases
  • Web
my_variable
14 Oct, 2023, 10:22
TL;DR
The user encountered a server error while trying to create a collection. The error message suggests an internal server error. The code is attempting to create a collection in a database using the Appwrite API. It seems that the API call is failing due to the server error. The user asked for assistance with the exact error. Currently, there is no solution provided in the support thread.
darShan
14 Oct, 2023, 10:48

Whats the exact error?

my_variable
14 Oct, 2023, 15:25

Traceback (most recent call last): File "C:\Users\nites\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\appwrite\client.py", line 97, in call response.raise_for_status() File "C:\Users\nites\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://cloud.appwrite.io/v1/databases/652ab2e651c88a1be96e/collections

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "d:\Production\rentmyCastle_backend\database.py", line 95, in <module> create_database_and_collections('development') File "d:\Production\rentmyCastle_backend\database.py", line 75, in create_database_and_collections new_collection = databases.create_collection(new_database['$id'], ID.unique(), collection_name) File "C:\Users\nites\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\appwrite\services\databases.py", line 135, in create_collection return self.client.call('post', path, { File "C:\Users\nites\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\appwrite\client.py", line 109, in call raise AppwriteException(response.json()['message'], response.status_code, response.json().get('type'), response.json()) appwrite.exception.AppwriteException: Server Error

Drake
14 Oct, 2023, 23:00

What's your project id?

my_variable
15 Oct, 2023, 00:56

6529f012f3c6cd71c906

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