Got server error 500 "general_unknown" when responding raw binary from Function
- 0
- Android
- Functions
- Cloud
My function responds a small ogg audio data, the console showed successful executions, but I got a server error from the client sdk (Android/Kotlin):
{
"message" : "Server Error",
"code" : 500,
"type" : "general_unknown",
"version" : "1.7.4"
}
Function side (Go 1.23):
// audio is a non-nil []byte
Context.Log("Audio generated:", len(audio), "bytes")
return Context.Res.Binary(audio)
The console logged "Audio generated: 2779 bytes" with status code 200. However, my client received an AppwriteException described above. I tried to encode the binary into base64 and it worked! But this is not the solution.
Thank you!
Recommended threads
- After assigning a domain to my Dart func...
I’ve attached the images. Could anyone please explain how this execution is being performed?
- Provider not enabled in Dotnet project
# Bug Report: Appwrite .NET SDK `CreateOAuth2Token` → `project_provider_disabled` ## Issue Using **Appwrite .NET SDK (v3.1.0)**, `CreateOAuth2Token` for Googl...
- Stuck on project restoration after inact...
Hey there! My project was paused due to inactivity today. I tried to restore it, but it's completely stuck on the restoration process. Could someone please tak...