googlearchive / cloud-functions-emulator

A local emulator for deploying, running, and debugging Google Cloud Functions.
https://github.com/GoogleCloudPlatform/cloud-functions-emulator/wiki
Apache License 2.0
827 stars 115 forks source link

"Parse error" when using with netjet #299

Open SamyPesse opened 5 years ago

SamyPesse commented 5 years ago

When using the netjet middleware in a cloud function, it sometimes crash the emulator with an error:

{"error":{"code":500,"status":"INTERNAL","message":"function crashed","errors":["Parse Error"]}}

After invesigation, disabling netjet make it work, and more precisely disabling the line that insert the Link headers make it work.

In my case, netjet is adding ~50/70 Link headers.