impress-2020/api
Matchu fc52439387 Reboot assetImage browser when it disappears
Been seeing this in testing in prod, the first few images worked great, but then eventually they all started saying the browser was disconnected.

Here, we add a check to reconnect if it goes missing. This is actually kinda hard to test in dev, because the dev server creates a new process every time the function runs, so fingers crossed!

I also added explicit logic to close the page when we're done with it, I'm worried we crashed the browser by exceeding the RAM limit by leaving pages open. Not sure quite how their model works and whether things eventually get flushed out on their own!
2021-08-19 23:38:25 -07:00
..
allWakaValues.js Trickier disabling honeycomb instrumentation 2021-08-08 00:23:57 -07:00
assetImage.js Reboot assetImage browser when it disappears 2021-08-19 23:38:25 -07:00
graphql.js Trickier disabling honeycomb instrumentation 2021-08-08 00:23:57 -07:00
outfitImage.js Trickier disabling honeycomb instrumentation 2021-08-08 00:23:57 -07:00
outfitPageSSR.js Trickier disabling honeycomb instrumentation 2021-08-08 00:23:57 -07:00
sendFeedback.js Trickier disabling honeycomb instrumentation 2021-08-08 00:23:57 -07:00
uploadLayerImage.js Trickier disabling honeycomb instrumentation 2021-08-08 00:23:57 -07:00
validPetPoses.js Trickier disabling honeycomb instrumentation 2021-08-08 00:23:57 -07:00