Call generated domain for cloud function through REST on 127.0.0.1 local development
- 0
- Self Hosted
- Functions
Hi guys, i am using 1.5 build of appwrite and i develop with it locally on my machine through docker. In my env file i set up the following:_APP_DOMAIN=127.0.0.1 _APP_DOMAIN_FUNCTIONS=127.0.0.1 _APP_DOMAIN_TARGET=127.0.0.1. I have deployed some function through the CLI which i would like to first test by calling the endpoint through curl or postman but i am unable to do so as i receive an error saying that the generated url is not a valid one Domains:6622a7e0ede832e2ad23.127.0.0.1 . Trying to open it through the browser fails too.
I have tried:
- modify the env variable to
_APP_DOMAIN_FUNCTIONS=localhostand relaunch appwrite but it failed and didn't let me redeploy the function. - using localhost directly within postman instead of 127.0.0.1 for the latter part of the generated domain but it failed too. with this error
Couldn't resolve the hostname to an IP address, Verify Url: https://66215a7228dd87b818b2.localhost
So there, if you guys have an idea how i can get this to work so i may continue on my local dev setup, please help out.
Maybe this will help: https://github.com/appwrite/appwrite/discussions/3917#discussioncomment-3720307
Recommended threads
- Tips for Debugging Appwrite Functions Lo...
Hi everyone! 👋 I have an Appwrite Function running locally with Docker, but I’m struggling to debug it because execution doesn’t reach the breakpoints I set. ...
- AttributeError: 'Context' object has no ...
I'm getting an error executing my function. I'm not able to replicate this locally since I have to use a mock context. Is there a way to debug this kind of erro...
- SyntaxError: The requested module 'node-...
I am trying to use appwrite functions and in the function i am creating rows but i got this error when i executed the funtion. As i checked docs there TablesDB...