You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mokamhawy, thanks for raising this issue! 馃檹馃徏 This usually happens if something is wrong with the endpoint value. Looking at your code, it looks like you're using localhost for the endpoint. This won't work because the runtime container will try to connect to itself rather than Appwrite. One option is to use the IP of your host machine on your LAN instead of localhost.
@stnguyen90 Thank you so much. Problem solved. for those who come later.
appwrite 1.4.5
in dart, in function code/src
final client =Client()
.setEndpoint(endpoint) // local-private ip ex. http:https://192.168.10.38/v1 NOT http:https://localhost/v1
.setProject(projectId)
.setKey(apiKey); // this should be generated with scope of what you need to do next
馃憻 Reproduction steps
I suspect the error is from setEndpoint.
my vars:
_APP_ENV=production
_APP_DOMAIN=localhost
_APP_DOMAIN_FUNCTIONS=localhost
_APP_DOMAIN_TARGET=localhost
_APP_FUNCTIONS_RUNTIMES=node-16.0,php-8.0,python-3.9,ruby-3.0,dart-3.0
_APP_EXECUTOR_SECRET=your-secret-key
_APP_EXECUTOR_HOST=http:https://appwrite-executor/v1
_APP_EXECUTOR_RUNTIME_NETWORK=runtimes
OPEN_RUNTIMES_NETWORK=runtimes
_APP_FUNCTIONS_RUNTIMES_NETWORK=runtimes
馃憤 Expected behavior
get users list
馃憥 Actual Behavior
AppwriteException: null, Connection failed (0)
馃幉 Appwrite version
Version 1.4.x
馃捇 Operating system
Windows
馃П Your Environment
1.4.5
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: