Skip to content
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

🚨 Error: Failed to parse <script> contents. Is it valid JSON? #53

Closed
ampprojectbot opened this issue Feb 12, 2021 · 1 comment
Closed

Comments

@ampprojectbot
Copy link
Member

Details

Error report: link
First seen: Feb 4, 2021
Frequency: ~ 5,841/day

Stacktrace

Error: Failed to parse <script> contents. Is it valid JSON?
    at Error (src/json.js:155:14)
    at getChildJsonConfig (extensions/amp-animation/0.1/amp-animation.js:83:23)
    at buildCallback (src/custom-element.js:457:23)
    at src/custom-element.js:453:38
    at buildInternal (src/service/resource.js:344:24)
    at build (src/service/resources-impl.js:587:29)
    at buildResourceUnsafe_ (src/service/resources-impl.js:522:6)
    at buildOrScheduleBuildForResource_ (src/service/resources-impl.js:643:4)
    at upgraded (src/custom-element.js:369:26)

Notes

@zhouyx modified src/json.js:135-158 in #17888 (Sep 5, 2018)
@alanorozco modified extensions/amp-animation/0.1/amp-animation.js:83-83 in #27597 (Apr 16, 2020)
@rsimha modified src/custom-element.js:453-453 in #21212 (May 16, 2019)
@dvoytenko modified src/service/resource.js:344-344 in #32342 (Feb 3, 2021)
@mkhatib modified src/service/resources-impl.js:643-643 in #4476 (Aug 12, 2016)
@jridgewell modified src/custom-element.js:369-369 in #8229 (Mar 28, 2017)

Seen in:

  • 02-06 Beta (0044+1)
  • 02-06 Experiment-A (0044+1)
  • 02-11 Nightly (0430)
  • 02-12 Nightly (0308)
  • +2 more

Possible assignees: @alanorozco, @zhouyx

/cc @ampproject/release-on-duty

@rcebulko
Copy link
Collaborator

This is a dupe of #33 with a different stacktrace due to the renamed method in #32342. Closing to keep that thread primary.

@caroqliu caroqliu closed this as completed Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants