I'm running a Python Flask endpoint locally and it all works fine, but when I deploy it in GCP AppEngine, I get a 502 Bad Gateway.
It seems to fail at about 200 reads of 2290 bytes each. I've increased the memory_gb of both the default YAML and the endpoint.