Hi there, I host a flutter web app on firebase hosting. But I am getting the error: AppwriteExeption: null , XMLHttpRequest error (0) Does anybody have an idea why i get this and even better how I can solve it. Would help me out like a lot 🙂
In what context you getting the error? You don't get it in your local machine?
Can you share the code + the error
I don't get in in my local machine
try { final account = await _account.get(); return account.$id; } on AppwriteException catch (error) { if (error.code == 401) { return null; } if (error.code == null || error.code == 0) { rethrow; } rethrow; }
Add log here
try {
final account = await _account.get();
return account.$id;
} on AppwriteException catch (error) {
print(error.message);
if (error.code == 401) {
return null;
}
if (error.code == null || error.code == 0) {
rethrow;
}
rethrow;
}
And tell us what it says
AppwriteExeption: null , XMLHttpRequest error (0)
The error code is also null?
yes
And is the firebase-hosting endpoint was added as a platform in the project platforms?
Also, Can you show the error in the networks tabs? Like so https://discord.com/channels/564160730845151244/1090661649574264863/1090663418211618826
how do I need to add the endpoint in the .env file ?
I meant here
Uhhhf thx yeah
i didn't set the endpoint right
sorry for wasting your time
And it's work now?
yes
Great You can mark as [Solved]
AppwriteExeption: null , XMLHttpRequest error (0) [Solved]
[SOLVED] AppwriteExeption: null , XMLHttpRequest error (0)
Recommended threads
- I'm getting error Invalid `url` param: I...
``` 2025-10-26T12:52:02.292Z [error] AppwriteException: Invalid `url` param: Invalid URI. Register your new client (vercel.com) as a new Web platform on your pr...
- Unknown column 'sourceSize' in 'field li...
After migrating from 1.6.1 to 1.7.4 I noticed this message in the logs: `appwrite-worker-stats-resources | 2025-10-26T10:32:38.289577112Z Failed: SQLSTATE[...
- Invalid document structure: Missing requ...
After migrating from 1.6.1 to 1.7.4 I noticed this message in the logs: appwrite-worker-audits | 2025-10-26T11:15:24.062537020Z Error processing a...