[SOLVED] Getting "general_phone_disabled" even though _APP_SMS_PROVIDER is provided in .env
- 0
- General
- Flutter
- Accounts

I'm integrating with Twilio and have added the sms provider string and sms from number in the .env file, restarted the instance multiple number of times and yet I'm getting the error from my Flutter client app
AppwriteException: general_phone_disabled, Phone provider not configured (503)
Code to trigger the call:
final models.Token token = await account.createPhoneSession(
userId: ID.unique(),
phone: '+91xxxxxxxx'
);
Even the appwrite-worker-messaging
container is running fine (screenshot attached)
Is there anything else I need to do in my client project instead?

Hey there 馃憢 After changes to .env, Appwrite needs to be restarted.
Stop with docker compose down
聽and start with docker compose up -d
. That should apply your changes to .env, and allow phone sessions. Please let me know if this works for you

yess! it worked! I didn't realize that restarting the container from the Docker GUI doesnt really do much. Thanks for the quick solution though!

Fyi, restarting the containers won't apply environment variables changes. They need to be recreated. docker compose down
will remove the containers, so that docker compose up -d
can recreate them.

[SOLVED] Getting "general_phone_disabled" even though _APP_SMS_PROVIDER is provided in .env
Recommended threads
- `access_denied_to_user` - push new branc...
Why pushig new branch is not allowed? ``` git push origin fix-no_issue_id-fix_variable_name remote: {"auth_status":"access_denied_to_user","body":"Permission t...
- 503 Timeout when Updating or Upserting D...
Hey I鈥檓 running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: {聽聽"name":聽"upload-whitelist",聽聽"type"...
