500 error page (in development) when add-on recommendation service is down
See original GitHub issueDescribe the problem and steps to reproduce it:
- Do something in the recommendations saga to trigger
abortFetchRecommendations()
. For example, if the API is down, the saga would abort with this error:
Error calling: /api/v3/addons/recommendations/ (status: 500)
- Load any add-on detail page
What happened?
A 500 page is shown
What did you expect to happen?
The add-on detail page should be shown without any recommendations.
Anything else we should know?
The 500 page is caused by this component error:
Caught application error: Invariant Violation: "outcome is required"
This will only affect development since (it does throw 👻 ). I’m not sure what would happen in production but the tracking event will be strange at the very least.invariant()
doesn’t throw in production
This only happened to me while hot reloading so that may be a prerequisite. Low priority issue but nice to fix!
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
How to Fix a 500 Internal Server Error on Your WordPress Site
The 500 Internal Server Error status code occurs when the server encounters an error that prevents it from fulfilling the request.
Read more >I Get 500 Error While Using Elementor
500 errors are server errors, originating from your website's server environment, and can be caused by several reasons. Here are some of the...
Read more >PrestaShop back office error 500 or blank page – How to fix
Generally, the PrestaShop back office error 500 occurs when we access the Back-office while Debug mode is active or while production mode ......
Read more >Internal Server Error Help, 500 Error | HostGator Support
A 500 Internal Server Error usually means something is misconfigured. This article covers several causes and how to address them.
Read more >How do I fix a problem when I am trying to sign into my ILLiad ...
You are going to your Web Site and you are getting an error message when you are trying to logon. It is saying...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No, that’s everything. Thanks!
@bobsilverberg
[GA: ON] sendEvent {"hitType":"event","eventCategory":"AMO Addon / Recommendations Shown","eventAction":"recommended_fallback-timeout","eventLabel":"Turlink"}
I don’t know if that’s the event you are referring to. Let me know if there’s something else I should be checking. Thanks!