Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

[BUG] Userscript doesn't work cause RT API is 404 #283

Open
1 task done
enchained opened this issue Dec 24, 2022 · 1 comment
Open
1 task done

[BUG] Userscript doesn't work cause RT API is 404 #283

enchained opened this issue Dec 24, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@enchained
Copy link

Describe the bug

Userscript stopped working completely because https://www.rottentomatoes.com/api/private/v2.0/search/ API was made private and gives 404 and returns html responce instead of JSON. It would be useful if the userscript could account such cases of API unavailability and skip just the ratings with issues.

Userscripts

Ratings on IMDb

Browser

Google Chrome

Userscript manager

Tampermonkey

Reproduction steps

  1. Open IMDB title page.
  2. Nothing is being added.

Console logs

VM65560:1 Uncaught SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)
    at Object.onload (userscript.html?name=Ratings%2520on%2520IMDb.user.js&id=2bdb21f3-b78b-4e62-9a2b-1be0103898e4:formatted:922:52)
    at St (<anonymous>:9:89)
    at s.onload (<anonymous>:25:215)
    at St (<anonymous>:9:89)
    at <anonymous>:34:72
    at St (<anonymous>:9:89)
    at r (<anonymous>:22:484)
    at <anonymous>:23:112
    at <anonymous>:67:445

Screenshots

No response

Is there an existing issue for this?

  • I have searched the existing issues
@enchained enchained added the bug Something isn't working label Dec 24, 2022
@i486
Copy link

i486 commented Feb 22, 2023

@iFelix18

Any progress on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants