[google-appengine] Error 500 on 60MB csv file download

2019-09-23 Thread Some Name
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...


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1c2f6ae7-40a8-4460-addb-0db1819b92e2%40googlegroups.com.


[google-appengine] Error 500 on 60MB csv file download

2019-09-23 Thread Some Name
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...


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2ed0c183-aeb1-4e2a-8cbe-7d3529c7da23%40googlegroups.com.