Reputation: 9512
I have this error
[ERROR]: Exception on / [POST]
as the last entry in the Log
tab of the Cloud Function. After testing, the function failed with:
Error: function terminated. Recommended action: inspect logs for termination reason. Additional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging Details: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
How do I fix this?
Upvotes: 3
Views: 2267
Reputation: 9512
Just sharing this since it surprised me. The log just needs some dozen seconds to really finish the entries. In my case, I went to the Log
directly after the failed test, and then jumped to Edit
of the CF right after seeing that log entry error at the bottom, thinking this would be everything I can gain from the log.
Then I changed my mind, went back to the Log
tab and saw the real error entry only coming after that [ERROR]: Exception on / [POST]
.
I share my error just as one example out of the million errors you might run into. I wrote the create_engine()
function without the needed module prefix sqlalchemy.create_engine()
. Now do not think from this example that you can do it at all. Querying your own db does not seem to work anyway in a CF unless you use a VPC connector.
Upvotes: 2