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
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- Appwrite (Dart SDK) (for package_info_pl...
Hi team! Many Flutter plugins now need package_info_plus 10.x and device_info_plus 13.x, but appwrite 25.4.0 still constrains package_info_plus: >=8.0.2 <10.0...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...