FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Error: `text` does not appear to be compatible with the provided replacements · Issue #13130 · mozilla/addons · GitHub

/ addons Public

Error: text does not appear to be compatible with the provided replacements #13130

Description

https://sentry.prod.mozaws.net/operations/addons-frontend-amo-prod/issues/5572103/

Error: `text` does not appear to be compatible with the provided replacements
  File "/srv/code/src/core/i18n/utils.js", line 449, in replaceStringsWithJSX
    throw new Error(
  File "/srv/code/src/amo/components/AddonVersionCard/index.js", line 113, in AddonVersionCardBase
    const licenseLink = replaceStringsWithJSX({
  File "/srv/code/src/core/components/ServerHtml/index.js", line 206, in ServerHtml.renderToString [as render]
    const content = component ? ReactDOM.renderToString(component) : '';
  File "/srv/code/src/core/server/base.js", line 116, in renderToString
    return ReactDOM.renderToString(
  File "/srv/code/src/core/server/base.js", line 421, in renderHTML
    const finalHTML = renderHTML({ props, pageProps, store });
...
(16 additional frame(s) were not displayed)

Error: `text` does not appear to be compatible with the provided replacements

In prod, this page is currently broken because of the error above.

It happens because license.name is null, which is allowed according to https://addons-server.readthedocs.io/en/latest/topics/api/addons.html#version-detail-object. It was silently failing before (I guess) but now that we have a new function that throws errors, this underlying/sleeping bug has been revealed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL