I am including appwrite using the following in my client side html
<script src="https://cdn.jsdelivr.net/npm/appwrite@14.0.1"></script>
I have a weird scenario playing out where in I have a python based function, where I dumped just before the endpoint returns and the output is showing
{'body': '{"error": "Method Not Allowed - POST", "Scenario": "42d0d764-a729-41e5-a8f4-1c1b7ec0b5ec"}', 'status': 405, 'headers': { 'Content-Type': 'application/json', 'Access-Control-Allow-Origin': 'https://mysubdomain.mydomaincom/', 'Access-Control-Allow-Methods': 'POST, OPTIONS', 'Access-Control-Allow-Headers': 'Content-Type, Authorization' } }
which is exactly what it needs to be.
But on web client (plan JS) side I have the attached JS code and I am seeing the following output
POST REST API responded with status: 200 POST REST API responded with status text: POST REST API headers:: [Array(2)] POST REST API response data:: {error: 'Method Not Allowed - POST', Scenario: '42d0d764-a729-41e5-a8f4-1c1b7ec0b5ec'}
How is it that the body data is intact, but the status got switched from 405 to 200?
Recommended threads
- Google Auth not working in a React App
Authentication with Google has failed. It redirects back to the signin route in React. Attached screenshots for configuration of Google console and Appwrite Go...
- Dokploy docker compose
Hey guys hope y'all doing well, I was wondering if anyone could share a working 1.8.0 docker-compose that works with Dokploy I tried making it but it just does...
- How to display images from storage
I tried the link above, but it returns the error “`Please upgrade to a higher plan.`” I don’t need Transformations at the moment, I just want to display the ima...