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
- New Build not visible on Domain
I pushed some new code to my Appwrite Site and the build succeeded and is shown as active. Yet, I can only see the new version of the site on Appwrite's provide...
- DNS bug
Hello, we found bug at the Appwrite Cloud Domains, when changing **only ** the Comment of CNAME, we get error DNS record already exists. Some DNS types do not ...
- Duplicate Billing Issue – Charged Twice ...
Hi Appwrite team, I noticed that my card was charged twice for the subscription payment ($25 each), even though I only intended to make a single payment. Coul...