New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: search results timeout causes page to go white #502
Labels
🐛 bug
Something isn't working
Comments
.take |
Thanks for taking this on! If you have not already, join the conversation in our Discord |
Wow thanks for catching this @adnanjpg |
adnanjpg
added a commit
to adnanjpg/open-sauced-hot
that referenced
this issue
Jan 5, 2024
16 tasks
adnanjpg
added a commit
to adnanjpg/open-sauced-hot
that referenced
this issue
Jan 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
when searching for a repository in the homepage, sometimes I get a result and the other times the page goes full white.
here's the error that's triggering the white page:
when I investigated further, turns out the call going to supabase from
src/components/Hero.tsx
, triggeringfetchRecommendations
fromsrc/lib/supabase.ts
is timing out and thus returningnull
, and as there's no null check insrc/components/Hero.tsx
,results
are set to null, which triggers an error a few lines later whenresults.length
is called, which causes the page to go whitea temporary solution would be to implement a null handling and a retry mechanism on the supabase calls.
but as I went further and set the
Network
property toSlow 3G
in the Performance tab in the developer console, I had all my requests failing. setting it toFast 3G
makes the first call work, but the second one failes. so I believe a more permanent solution would be to reconfigure the timeoutSteps to reproduce
Reproduce 1:
Slow 3G
rust
Reproduce 2:
Fast 3G
rust
dart
Browsers
Other (add additional context)
Additional context (Is this in dev or production?)
production, using the Arc browser (arc.net)
Code of Conduct
Contributing Docs
The text was updated successfully, but these errors were encountered: