Appwrite functions deploy error - Cannot access offset of type string on string
- 1
- Tools
- Functions
that means it can reach host now
Try to deploy now
% docker exec appwrite vars | grep _APP_EXECUTOR_RUNTIME_NETWORK
- _APP_EXECUTOR_RUNTIME_NETWORK=appwrite_runtimes
Something is not quite right
Cannot access offset of type string on string
what should in _APP_EXECUTOR_RUNTIME_NETWORK ?
Run
docker compose down
Then
docker ps -a
What you get
empty list
Just runtimes
yeah, that's strange
% docker exec appwrite vars | grep _APP_EXECUTOR_RUNTIME_NETWORK
- _APP_EXECUTOR_RUNTIME_NETWORK=appwrite_runtimes
even if .env contains only runtimes for network
Have you try running these?
% docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Good
No check these again
docker compose up -d
docker exec appwrite vars | grep _APP_EXECUTOR_RUNTIME_NETWORK
Is it working now?
% docker exec appwrite vars | grep _APP_EXECUTOR_RUNTIME_NETWORK
- _APP_EXECUTOR_RUNTIME_NETWORK=appwrite_runtimes
😦
So try reverse it at the end of docker-compose.yml
networks:
gateway:
name: gateway
appwrite:
name: appwrite
runtimes:
- name: runtimes
+ name: appwrite-runtimes
And restart the docker compose
I just did docker prune and docker compose -d and reinit everything and now it looks like works...
Good
But when I executed example function - An internal curl error has occurred within the executor! Error Msg: Operation timed out\nError Code: 500
well...one more complete setup from scratch did the trick...still have no idea what was root cause
Recommended threads
- The file size is either not valid or exc...
Hello, I am receiving the following error when I am trying to deploy a function from my local. ``` > appwrite push functions --function-id xxxxxxxxx ℹ Info: Va...
- How does sending email from the Appwrite...
I noticed that the pricing page mentions “Messages – 1000 per month” for the Free plan. Is this different from sending emails? When I try to send an email usin...
- Appwrite functions dart runtime (3.7 sup...
It seems that currently Appwrite functions only support Dart runtime to 3.5, for my code I need dart 3.7. Is there any plan to support Dart3.7 runtime soon. Is ...