Discuss Scratch

heldlaw
Scratcher
100+ posts

Cloud data history page broken due to incorrect CORS configuration

All ‘Cloud data history’ pages are broken. This makes it impossible for scratchers to see the cloud history of a project.

Who/what is affected
Probably:
  • every project that uses cloud variables (I tried a couple of my own and a few others)
  • every scratcher (found some complaints elsewhere in this forum)
  • every web browser (tested in Google Chrome and Firefox, tested on different PCs)
This has been going on for at least a week; probably more.

Symptoms
As the ‘Cloud data history’ page loads, it displays a throbber that keeps spinning forever. No data is displayed.
Screenshot:



Cause
A JavaScript error occurs. From the web browser's JavaScript console:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://clouddata.scratch.mit.edu/logs?projectid=638334528&limit=40&offset=0. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 301.
From the network tab, it appears the clouddata server is not returning HTTP response header ‘Access-Control-Allow-Origin’.
Screenshot:



Solution
EDIT: not a solution; something else is wrong on clouddata. It appears to suffer from a redirect loop, see discussion below.
Scratch Team, please fix CORS configuration on the clouddata servers. I'm not a CORS expert, but I would expect this HTTP response header:
Access-Control-Allow-Origin: https://scratch.mit.edu
If there are reasons to postpone this fix (which I can imagine as there appear to be more issues with clouddata at the moment), then please communicate this to the Scratch community.

Last edited by heldlaw (Oct. 7, 2023 16:59:58)

D-ScratchNinja
Scratcher
1000+ posts

Cloud data history page broken due to incorrect CORS configuration

I believe sometimes server downtime can make it appear that CORS is misconfigured, because it doesn't load the relevant CORS header or something?

Or maybe they're currently working on fixing something…
heldlaw
Scratcher
100+ posts

Cloud data history page broken due to incorrect CORS configuration

D-ScratchNinja wrote:

I believe sometimes server downtime can make it appear that CORS is misconfigured, because it doesn't load the relevant CORS header or something?
Good point! Directly fetching https://clouddata.scratch.mit.edu/logs?projectid=638334528&limit=40&offset=0 indeed gives an error page.

Firefox:



Google Chrome:



Oh dear, looks like a redirect loop.



D-ScratchNinja wrote:

Or maybe they're currently working on fixing something…
I sure hope so, because currently, cloud variables seem to be broken altogether. And that has been going on for more than a week…

Last edited by heldlaw (Oct. 7, 2023 16:57:16)

D-ScratchNinja
Scratcher
1000+ posts

Cloud data history page broken due to incorrect CORS configuration

The good thing is that new Cloud variables seem to be updating properly on the project page side.
heldlaw
Scratcher
100+ posts

Cloud data history page broken due to incorrect CORS configuration

D-ScratchNinja wrote:

The good thing is that new Cloud variables seem to be updating properly on the project page side.
Thank you, I had missed that from other threads! I renamed the cloud variable in one of my projects, renamed it back, and the project works again.

Of course, this still leaves us with a broken ‘Cloud data history’ page. Only ST is in a position to fix that.
geek62
Scratcher
100+ posts

Cloud data history page broken due to incorrect CORS configuration

Is there any word on this getting fixed? I would really like to see the cloud data history of one of my projects.
medians
Scratcher
1000+ posts

Cloud data history page broken due to incorrect CORS configuration

I made a new project and the cloud var was working, but the cloud log was still broken, and projects from before the maintenance should really be fixed.
OptimusR
Scratcher
2 posts

Cloud data history page broken due to incorrect CORS configuration

D-ScratchNinja wrote:

The good thing is that new Cloud variables seem to be updating properly on the project page side.
Hello, My Cloud Data Is STILL DOWN, All i get is that same endless spining loop!
CloudData)



OptimusR
EpicKitty12
Scratcher
18 posts

Cloud data history page broken due to incorrect CORS configuration

apologize if this is considered necroposting, but this error is still happening even in 2024.
OptimusR
Scratcher
2 posts

Cloud data history page broken due to incorrect CORS configuration

Yeah! Scratch, Fix Your Website! Like Seriously!
GachaFans
Scratcher
3 posts

Cloud data history page broken due to incorrect CORS configuration

BRUH SCRATCH FIX A IMPORTANT PART OF THE WHOLE WEBSITE
EpicKitty12
Scratcher
18 posts

Cloud data history page broken due to incorrect CORS configuration

GUYS THEY FIXED IT!!!

Powered by DjangoBB