executeFunction intermittently throws FormatException: Unexpected end of input due to empty HTTP 500
- 0
- 1
- Flutter
- Cloud
- Realtime
- Self Hosted
- REST API
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function].
Description: Intermittently, calls to executeFunction fail with:
executeFunction [myEndpoint] HTTP 500: ""
errore rete/parsing: FormatException: Unexpected end of input (at character 1)
The response body appears to be empty, so the SDK's jsonDecode() fails while trying to parse the error response. This happens under both normal use and load testing, is not consistently reproducible, and self-resolves after a few seconds — retrying the same call shortly after succeeds. The app does not crash or hang; it's isolated to this specific call failing once.
Question: Is this expected behavior when a function hits a timeout, cold start, or concurrency limit? Could the SDK/API return a proper JSON error body (or a distinct timeout error) instead of an empty 500, so it can be handled gracefully client-side?
Recommended threads
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- Console display all Databases as TablesD...
While looking at an issue with <@1231860789355347971> we saw that the console was displaying ALL databases as `TablesDB` even if the real type in the API is `le...
- How to update from 1.8.1 to 1.9.6
Due to the number of issues reported in version 1.9.5, I am hesitant to proceed with the update. Could anyone advise if version 1.9.6 is stable and resolves tho...