I have created a express API function. I was facing issue calling the function directly via its apprwrite URL on local env so I tried adding a proxy this worked on local env, but when deployed the code on vercel. I faced error: POST https://canteen-management-two.vercel.app/chat/user/yashTest 404 (Not Found). I am even using AppExpress CORS Middleware but still facing such issue. Also added localhost, *.vercel.app as hostname as Platforms to my project. FYI: I am to hit this endpoint using apprwrite's function URL via postman.
@darShan Can you help me with this? Attached images of code. Please let me know if any more info is required.
I don't think this is related to cors
.
How did you deploy your function at https://canteen-management-two.vercel.app
? Does vercel allow using domain somewhere else?
I see that the direct url hit works - https://66700e5aef9b29ddc13f.appwrite.global/
, its probably something with the proxy config you've defined.
Recommended threads
- user_oauth2_unauthorized
I receive this errors when i try to login using Github ``` { "message": "Bad credentials: No description", "code": 401, "type": "user_oauth2_unauthorized...
- Subject: Seeking Advice on Adding AI to ...
hope you’re all doing well! My name is Ashish Nagvanshi, and I’m currently working on building my first SaaS product aimed at transforming the way people choose...
- building a chat feaute in my app using a...
I am building a group chat feature in my appusing appwrite. I am usijg the appwrite db to sotre the messages, and apperite realtime for listening to any realti...