
sError:
OSError (OS Error: No address associated with hostname, errno = 7)
errorCode:
7
message:
"No address associated with hostname"

It only happens when...
1. One the app with internet off and then turn on the internet
2. Then call the account.get()
3. Got this error

it seems for some reason if you try to create instance of Client when there is no internet and if you switch on the internet then client instance will keep throwing this error ... Till you don't manually close the app and reopen. So, that when instance hostname lookup will happen this time considering internet is switched on

I guess, what should have happened was if hostname lookup fail happen then re-attempt should have been made couple of once more time...
I guess this is place where concept of interceptor would be handy, remember couple of months back brought this into noticed I guess...

for now I guess I have I will have change something... at my project Arch-level I guess to recreate the instance of Client when user-internet is backonline...

should I create issue for this?

I'm pretty sure seeing this because the Client or endpoint is being reset.

I have double checked it actually, I am available loading endpoint from env and Appwrite service class is singleton so, not sure how would that happen but, I will double check if that's case. From what I observed I can say that I see the host name same in both cases

try to double check the endpoint before the API call is made

Ideally, set a breakpoint here: https://github.com/appwrite/sdk-for-flutter/blob/54f30faa4a4fab2af0fe57c172550b288c9cbb4b/lib/src/client_io.dart#L368 and you can check _endpoint
or the request

On it, I am gonna try in in just couple mins and update here

for some reason it's happening anymore 馃憖 have tried to replicate but not happening... very wired

I will let it open if it happen again then report here else I will close
Recommended threads
- 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"...
- Sites 30MB limit from GitHub
I鈥檓 deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it鈥檚 in a subdirectory with the root being an html landin...
