workers-pubsub icon indicating copy to clipboard operation
workers-pubsub copied to clipboard

Unhandled HTML response from GCP

Open POD666 opened this issue 2 years ago • 0 comments

Sometimes GCP responds with html for errors, e.g. 404 when using a wrong topic name.

While it's easy to find and fix a typo in a topic name during development, sometimes unknown errors occur.

Here is all I see for an unexpected issue in sentry: image

So, it would be nice to add handling for HTML responses from GCP.

Here and other methods: https://github.com/sagi/workers-pubsub/blob/master/src/topics.js#L31

POD666 avatar Oct 04 '22 22:10 POD666