jsonhero-web icon indicating copy to clipboard operation
jsonhero-web copied to clipboard

App crashes when you leave it open for a long time

Open bjornharvold opened this issue 2 years ago • 3 comments

Getting this consistently when leaving the app open in a browser tab.

Guessing the Service Worker / CDN is to blame for this.

screencapture-jsonhero-io-2022-09-16-10_07_55

bjornharvold avatar Sep 16 '22 03:09 bjornharvold

Thanks for the report! How long about does it take for this to happen? I'm guessing you are on the JSON viewer page when this occurs?

ericallam avatar Sep 16 '22 08:09 ericallam

Hi @ericallam

I just leave the browser open all day. Some time I leave the laptop in suspend and open it again the next day.

I've received this a couple of times now.

bjornharvold avatar Sep 16 '22 09:09 bjornharvold

I've managed to recreate this issue: it happens when you are viewing JSON and lose internet access, and then we attempt to fetch the details of a URL preview. It could be happening in this file here: https://github.com/apihero-run/jsonhero-web/blob/main/app/components/Preview/Types/PreviewUri.tsx

ericallam avatar Oct 05 '22 08:10 ericallam

/bounty $200

ericallam avatar May 20 '23 06:05 ericallam

💎 $200 bounty created by ericallam 🙋 If you start working on this, comment /attempt #95 to notify everyone 👉 To claim this bounty, submit a pull request that includes the text /claim #95 somewhere in its body 📝 Before proceeding, please make sure you can receive payouts in your country 💵 Payment arrives in your account 2-5 days after the bounty is rewarded 💯 You keep 100% of the bounty award 🙏 Thank you for contributing to triggerdotdev/jsonhero-web!

Attempt Started Solution
🟢 @tobihans May 20, 2023 #160
🟡 @daveads May 23, 2023 WIP

algora-pbc[bot] avatar May 20 '23 06:05 algora-pbc[bot]

I'd like to try this.

/attempt #95

tobihans avatar May 20 '23 07:05 tobihans

Note: The user @tobihans is already attempting to complete issue #95 and claim the bounty. If you attempt to complete the same issue, there is a chance that @tobihans will complete the issue first, and be awarded the bounty. We recommend discussing with @tobihans and potentially collaborating on the same solution versus creating an alternate solution.

algora-pbc[bot] avatar May 23 '23 09:05 algora-pbc[bot]

@daveads I'm working on this, please. I'm going to submit a PR soon. Thanks

tobihans avatar May 23 '23 09:05 tobihans

@tobihans okay

daveads avatar May 23 '23 13:05 daveads

💡 @tobihans submitted a pull request that claims the bounty. You can visit your org dashboard to reward.

algora-pbc[bot] avatar May 24 '23 06:05 algora-pbc[bot]

🎉🎈 @tobihans has been awarded $200! 🎈🎊

algora-pbc[bot] avatar May 25 '23 08:05 algora-pbc[bot]