question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

500 error page (in development) when add-on recommendation service is down

See original GitHub issue

Describe 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"

See https://github.com/mozilla/addons-frontend/blob/4cbac1c586e49936e3a1327332e9d942d6b0e71e/src/amo/components/AddonRecommendations/index.js#L92

This will only affect development since invariant() doesn’t throw in production (it does throw 👻 ). I’m not sure what would happen in production but the tracking event will be strange at the very least.

This only happened to me while hot reloading so that may be a prerequisite. Low priority issue but nice to fix!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bobsilverbergcommented, Feb 11, 2020
  • the only available GA I see (when an add-on detail page is loaded) in the console is [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.

No, that’s everything. Thanks!

0reactions
ioanarusiczkicommented, Feb 11, 2020

@bobsilverberg

  • I did not find regressions on the frontend pages - the recommended badge is available.
  • I could add/remove the recommended badge for an add-on.
  • the only available GA I see (when an add-on detail page is loaded) in the console is [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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found