Hello everyone,
I'm facing an issue with my Cloud Run service, which acts as a webhook receiver for Error Reporting API notifications. I would like to request assistance from the community to resolve this problem.
Problem Details:
Steps Taken So Far:
I would appreciate any insights, suggestions, or solutions from anyone who can help resolve this problem. I'm available to provide further information if needed.
Thank you in advance for your assistance.
Best regards, Pedro Lucas
Hello Lucas,
Thanks for reaching out. Sorry to hear that your setup is acting weird.
Do you mind sharing a sample of what the payload looks like in the cases where the parsing fails?
Feel free to DM it to me if it does contain sensitive information.
Thanks
Hello,
Good morning! Thank you for responding. So, the issue is that my service is unable to handle this request. It breaks when trying to create an object of type Request with the received information and insert it into the application context. Unfortunately, since I'm using Cloud Run and don't have any proxy, I can't identify what exactly is being sent to my service if it doesn't handle the request correctly. That's why I'm raising the suspicion that the encoding type may be causing my service to fail to handle it properly.
Furthermore, it's important to reiterate that this problem doesn't occur in every request. It's worth noting that more than 50% of the requests are processed successfully.
If there's any other information I can provide to assist you, please let me know.
Thank you.
Facing the very same problem. Any news?
Hello Friends,
Apologies for my delayed response. This was due to some personal OOO.
Our team has been brainstorming what could be going on here and without a sample of the JSON request causing the exception it is hard to troubleshoot.
Our next step is to take a closer look at your projects, but that requires your explicit permission to access.
To grant this permission, please use the "Send Feedback" feature in the top right hand corner of your Google Cloud Console to summarize the issue, explicitly call out Error Reporting as the relevant product and include your project number.
This will give us the initial justification to seek permission to look at your project.
Thank you for continuing to partner with us and once again apologies for the delayed response.
This sounds exactly the same as the bug I just reported to the issue tracker:
https://issuetracker.google.com/issues/323465177
In my case, I am using a Cloud Function to receive the webhook alert, not Cloud Run, but the root cause sounds the same, which is that the webhook request contains invalid json. Specifically, if an error log contains single quotes, those single quotes will be escaped in the json, which is technically invalid. I suggest you debug print the payload you receive from Error Reporting and check if it contains escaped single quotes, or possibly something else causing the json to be invalid. jsonlint.com can be used to quickly validate a json document.
Also worth mentioning is that in the issue I link to above there is example json in a screen shot. But I am posting a scrubbed example here anyway. Notice the escaped single quotes in 4 places.
Hello Friends,
The fix for this specific issue has fully rolled out to prod.
Thank you for flagging it and for your patience with us as we worked to resolve it.
As always, we really value your feedback.
Feel free to reach out if there is any other issue we should look into.