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

Web Interface broken on M1 MacBooks #402

Open
csounder opened this issue Dec 10, 2024 · 11 comments
Open

Web Interface broken on M1 MacBooks #402

csounder opened this issue Dec 10, 2024 · 11 comments

Comments

@csounder
Copy link

When you open csound web ide - (on Chrome or Safari) on an M1 MacBook you do not see any projects or profiles - you only see some moving lines in each of the square - this happens on my laptops and all my Csound student's laptops at Berklee this past week.

@kunstmusik
Copy link
Member

@hlolli looks like an issue with the search service:

Access to fetch at 'https://web-ide-search-api.csound.com/search/prod/random/projects/8' from origin 'https://ide.csound.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

@hlolli
Copy link
Member

hlolli commented Dec 18, 2024

This issue has been re-occouring and short term fixes have been very short term. I am working on a long term fix for this problem and I apologise that I didn't reply here sooner, but I hope to have it stable and shipped before new year.

@hlolli
Copy link
Member

hlolli commented Jan 2, 2025

I wasn't able to finish fixing this in time, I had unexpected case of pneumonia in my family and was at the hospital. I hope in a week we'll see the fixes pushed to prod.

@vlazzarini
Copy link
Member

Thanks for this @hlolli. Thankfully, the IDE itself is fully working (well at least here), so it's not urgent really.

@csounder
Copy link
Author

Hello @hlolli ... actually it is rather 'urgent' here - at Berklee. The semester begins next week (Wednesday) - and it is still not working on any of the Macs here.

@Ian-Grant
Copy link

Ian-Grant commented Jan 15, 2025

I have the same problem with Firefox 134.0 (64-bit) running on Ubuntu 24.0.1 https://ide.csound.com/ doesn't show any examples, but the web UI (e.g. "Getting Started 1" at https://ide.csound.com/editor/21zOuoahdiJj8DnT7UN8) does work, just the search box doesn't find any projects nor do any of the popular projects appear. If I use the "Inspect " option on firefox for one of the boxes I get error notifications like "Uncaught (in promise) FirebaseError: Too many outstanding requests.
G errors.ts:85
Wo index.esm2017.js:370
i index.esm2017.js:5963
t index.esm2017.js:5972
onMessage index.esm2017.js:13523
Go index.esm2017.js:13477
Ko index.esm2017.js:13500
enqueue index.esm2017.js:17414
t index.esm2017.js:17447
errors.ts:85:4
[2025-01-15T09:38:40.655Z] @firebase/firestore: Firestore (9.17.1): FirebaseError: [code=resource-exhausted]: Too many outstanding requests. logger.ts:116:6
[2025-01-15T09:38:40.655Z] @firebase/firestore: Firestore (9.17.1): Using maximum backoff delay to prevent overloading the backend. logger.ts:116:6
Storage access automatically granted for origin “https://github.com/” on “https://ide.csound.com/”.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://web-ide-search-api.csound.com/search/prod/random/projects/8. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 502.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://web-ide-search-api.csound.com/search/prod/list/stars/8/0/count/desc. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 502.

Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource. 2"

@hlolli
Copy link
Member

hlolli commented Jan 16, 2025

I will try as hard as I can, the whole search database as seaparate service is being scraped off. There are bugs on develop branch that I need to fix before I can merge to master. Worst case I will sync with Steven and I buy a cloud server and make a short term solution.

@csounder
Copy link
Author

csounder commented Jan 16, 2025 via email

@hlolli
Copy link
Member

hlolli commented Jan 18, 2025

@csounder we have kicked the stone down the road and the search and random project features should work again as before. The long term fix will kick in, in next few weeks. Please try hard refersh if the problem persists. Should work on all operating systems equally.

@csounder
Copy link
Author

csounder commented Jan 18, 2025 via email

@Ian-Grant
Copy link

@csounder we have kicked the stone down the road and the search and random project features should work again as before. The long term fix will kick in, in next few weeks. Please try hard refersh if the problem persists. Should work on all operating systems equally.

Yes, it works great with Firefox now too. Thank you!

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

5 participants