Flutter Developer
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?