ternandsparrow / wild-orchid-watch-pwa

Progressive Web App for the Wild Orchid Watch citizen science project
https://app.wildorchidwatch.org
4 stars 4 forks source link

DataCloneError in SW from 500 #63

Open tomsaleeba opened 3 years ago

tomsaleeba commented 3 years ago

Env: beta release: c909f07.20200330-115549 Device: SM-A520F, Android 8 Browser: Samsung internet 11.1

Error message: DataCloneError: Failed to execute 'postMessage' on 'MessagePort': QueueReplayError: Failed to replay queue 'obs-dependant-queue', due to: Response indicates server error (status=500) could not be cloned.

This is weird because we only have one call to clone() in the SW and it's before we execute the request. So it should never have a response. You can see 2 items earlier in the breadcrumbs, we get the type of error we expect when we get a 500. Then the next breadcrumb says it's blocking another refresh request, but maybe it doesn't and we have a race condition with two replays at the same time.

Sentry issue dump: blah