Page MenuHomePhabricator

ORES possibly blocking PetScan from loading?
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

  • Open browser-console
  • Visit https://petscan.wmflabs.org/
  • See a blank page
  • Look in browser-console and see the error message:
    • The script from “https://ores.wikimedia.org/v3/scores?_=1695688135901&callback=jQuery32104251558884540426_1695688135900” was loaded even though its MIME type (“application/json”) is not a valid JavaScript MIME type.
    • or Chrome: Cross-Origin Read Blocking (CORB) blocked cross-origin response https://ores.wikimedia.org/v3/scores/?callback=jQuery321007862905624331429_1695763249117&_=1695763249118 with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details.

What should have happened instead?:

  • It should've shown the rest of the page (which is loaded, and can be shown by turning-off the CSS for <body style="display:none">, but that CSS has been there for 4 years so should be unrelated).

Notes
I'm not sure if this is ORES/Lift Wing related, but I suspect it might be due to the timing?
Originally reported at Enwiki. (https://en.wikipedia.org/wiki/Wikipedia_talk:PetScan#Petscan_displays_blank_page,_unusable)

Event Timeline

This is definitely ORES/Lift Wing related. We are working on it.

Change 960763 had a related patch set uploaded (by Ilias Sarantopoulos; author: Ilias Sarantopoulos):

[machinelearning/liftwing/inference-services@main] ores-legacy: fix CORS headers

https://gerrit.wikimedia.org/r/960763

Change 960763 merged by jenkins-bot:

[machinelearning/liftwing/inference-services@main] ores-legacy: fix CORS headers and avoid redirects

https://gerrit.wikimedia.org/r/960763

Change 960998 had a related patch set uploaded (by Ilias Sarantopoulos; author: Ilias Sarantopoulos):

[operations/deployment-charts@master] ml-services: allows CORS in ores-legacy

https://gerrit.wikimedia.org/r/960998

Change 960998 merged by jenkins-bot:

[operations/deployment-charts@master] ml-services: allows CORS in ores-legacy

https://gerrit.wikimedia.org/r/960998

Change 961044 had a related patch set uploaded (by Ilias Sarantopoulos; author: Ilias Sarantopoulos):

[machinelearning/liftwing/inference-services@main] ores-legacy: fix allowed cross origins

https://gerrit.wikimedia.org/r/961044

Change 961044 merged by jenkins-bot:

[machinelearning/liftwing/inference-services@main] ores-legacy: fix allowed cross origins

https://gerrit.wikimedia.org/r/961044

Hey @taavi. I think this ticket and your ticket T347317: petscan expects javascript function callback from ORES are the same bug. Note how both URLs have the callback parameter. Shall we merge them?

PetScan restored for now. Waiting for the CORS issue to be resolved.

Changed the query so it's now working as before the ORES change.