Skip to content
Back

python runtime: basic code not working

  • 0
  • Functions
Prionto
3 Jan, 2025, 12:30

def main(context): pic = context.req.bodyBinary return context.res.binary(pic, 200, { 'content-type': 'image/png' })

i got status 500 , server error , general protocol unsupported!! What's the issue?

TL;DR
Developer is having an issue with basic Python code not working, resulting in a server error (status 500). The error message indicates a general protocol unsupported problem. The code provided seems to be missing necessary imports or configurations for the server to handle the request properly.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more