
I am seeing AppwriteException: null, OS Error: Bad file descriptor, errno = 9 (0), from time to time, it is hard to reproduce. I add new content to AppWrite DB and if physical iOS device is in a certain state, like locked in the background, I might get this. (Using a FutureBuilder to get here, and spitting this out by going to snapshot.hasError on future resolve)
else if (snapshot.hasError) { // Get.offAll(MainScreen()); print(snapshot.error); return Center(child: Column( children: [ Text('${snapshot.error}'), const Icon(Icons.error_outline), ], ),); }

Ya, this seems like a known flutter issue: https://github.com/dart-lang/http/issues/197
You have to be very careful about doing stuff in the background on mobile.

Got a bit confusing, tough, not doing anything in the bg

You said:
physical iOS device is in a certain state, like locked in the background, I might get this

Yes, I really don't do any background operations, There are no life cycle operations, all are on active state. I only have a StreamBuilder watching a collection, and sometimes I get that error, when a new stream event is fired and the app is the background.

The sometimes is really weird, I do 20 times the same thing, and the 21st this can happen.

Going back on doing more testing.

I do have the same data, structure, function on another widget, but coming from firestore, the same StreamBuilder.

when a new stream event is fired and the app is the background.
When I say background operation, I mean code that is executed while the app is in the background.

Hmm, I now shutdown the stream and only activate it when AppLifecycleState is resumed. Feels hacky, but it works for now.

[SOLVED] AppwriteException: null, OS Error: Bad file descriptor, errno = 9 (0)
Recommended threads
- flutter_web_auth_2 needs to be updated!
The appwrite SDK is using an old version of flutter_web_auth_2 which I beleive is now deprecated, or atleast, isn't working for me. iOS, Linux, Web, Windows stu...
- Still an issue? On user deletion, target...
This has been mentioned here: https://discord.com/channels/564160730845151244/1295830646039515146 and as a Github issue here: https://github.com/appwrite/appwri...
- Appwrite database is rounding int values
Hi, i just noticed that appwrite is rounding the value 608542412536545279 to 608542412536545300 in my int array. It seems to somewhat relate to this github iss...
