Error 500 on 60MB csv file download

25 views
Skip to first unread message

Some Name

unread,
Sep 23, 2019, 9:21:39 AM9/23/19
to Google App Engine
Hello,
I have an API endpoint in Google Apps Engine (F4 instance, Python3, Flask).
The endpoint streams CSV data using this code
return Response(converter.generate(), mimetype="text/csv", headers={
   
"Content-Disposition": "attachment; filename=data_export.csv",
})
converter.generate() yields bytes() objects.
This works on my local machine but when deployed on GAE it throws an 500 error with no info in the logs about what caused the error.
Previously it had show in the logs that the instance has ran out of memory but I have increased it from F1 to F4 and made it a data stream instead of generating it at once.
Now the memory issue is fixed but it still throws the 500 error.
Enter code here...


Elliott (Cloud Platform Support)

unread,
Sep 23, 2019, 5:26:09 PM9/23/19
to Google App Engine
Hello,

Please note that Google Groups are reserved for general Google Cloud Platform-end product discussions and not for reporting issues, which is why I suggest moving the troubleshooting to Issue Tracker[1], where issues can be turned private in case we need to gather any project specific details.


[1] https://cloud.google.com/support/docs/issue-trackers

Some Name

unread,
Sep 23, 2019, 5:45:31 PM9/23/19
to Google App Engine
Reply all
Reply to author
Forward
0 new messages