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: Start With Python Tutorial fails #77

Closed
2 tasks done
vvixi opened this issue Oct 23, 2023 · 1 comment
Closed
2 tasks done

馃悰 Bug Report: Start With Python Tutorial fails #77

vvixi opened this issue Oct 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@vvixi
Copy link

vvixi commented Oct 23, 2023

馃憻 Reproduction steps

Followed the steps in: https://appwrite.io/docs/quick-starts/python.
Ensured correct Project Id and API key.

馃憤 Expected behavior

Expected my_app to launch, connect to API / db, and return "todo" items.

馃憥 Actual Behavior

my_app.py example fails to run with:

(.venv) (base) dev@dv_one: python my_app.py
Traceback (most recent call last):
File "/home/user/Documents/appwrite/test/test_python/.venv/lib/python3.9/site-packages/appwrite/client.py", line 100, in call
response.raise_for_status()
File "/home/user/Documents/appwrite/test/test_python/.venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://cloud.appwrite.io/v1/databases

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/user/Documents/appwrite/test/test_python/my_app.py", line 102, in
prepare_database()
File "/home/user/Documents/appwrite/test/test_python/my_app.py", line 21, in prepare_database
todoDatabase = databases.create(
File "/home/user/Documents/appwrite/test/test_python/.venv/lib/python3.9/site-packages/appwrite/services/databases.py", line 40, in create
return self.client.call('post', api_path, {
File "/home/user/Documents/appwrite/test/test_python/.venv/lib/python3.9/site-packages/appwrite/client.py", line 112, in call
raise AppwriteException(response.json()['message'], response.status_code, response.json().get('type'), response.json())
appwrite.exception.AppwriteException: Project with the requested ID could not be found. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used.

馃幉 Appwrite version

Version 0.10.x

馃捇 Operating system

Linux

馃П Your Environment

Kernel 6.1.55-1-MANJARO x86_64
Python 3.9.13
AMD Ryzen 7 1700X Eight-Core Processor

I can add more details upon request.

馃憖 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?

@vvixi vvixi added the bug Something isn't working label Oct 23, 2023
@vvixi vvixi changed the title 馃悰 Bug Report: 馃悰 Bug Report: Start With Python Tutorial fails Oct 23, 2023
@abnegate
Copy link
Contributor

Hi @vvixi, it looks like in this case the project was not set correctly, which caused the database to fail to create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants