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
- Sites takes a bit longer with better res...
site: devaxis.appwrite.network cc: <@185460546336718859> https://discord.com/channels/564160730845151244/564160731327758347/1407009490745823334 I dont know if ...
- Bulk Operations in Function API KEY
When my appwrite function executes (hosted on appwrite console), the bulk operations don't execute (without error) unless I add a dev key as an API Key in the e...
- Paid all invoices, project still in read...
Good day, we have a problem whereby we have settled all outstanding invoices and the project is still in read-only mode,
