Iām wondering if itās a spam control thing? Iām developing this application so Iām probably hitting speckle.xyz quite hard every time I clear our IndexedDB cache of models
Hi @mysterybear
If it was spam control, you should receive a response with a 429
HTTP status code from Speckle Server.
If you are able to inspect the headers of the response (in Google Chrome, this is found in the Network tab of the developer tools panel) you should see an access-control-allow-origin
header with a value of *
.
Iain
Hi @iainsproat
I am facing the CORS issue too while trying to load an object using the Speckle viewer API. This used to happen intermittently in the past couple of weeks, and used to resolve after a while. Now it just wonāt load and keeps giving the CORS error.
Dev-tools > Network:
Request to āhttps://app.speckle.systems/objects/streamId/objectId/singleā shows a āCORS errorā for fetch and a ā503 Service unavailableā for preflight type.
On checking the preflight entry, the response headers do show access-control-allow-origin: *
The Referrer Policy in the General group is however āstrict-origin-when-cross-originā.
Why has this been working at times and failing with the CORS error sometimes? (Now it doesnāt work, trying for about 4 hoursā¦) Has the server configuration been changed?
Please help!
Thanks.
P.S. I did try with the speckle.xyz canonical URL and still got the same CORS error.
Hey @dushyant
Could you provide a reproduction of this on JSFiddle or an equivalent service?
Also please provide the following when the error happens:
- The GMT+0 timestamp of when the error occurs
- The URL youāre trying to request
- (If possible) The response headers & body you see in the failing response in dev tools
Regards the actual underyling issue - It doesnāt seem to be a CORS issue, but our objects API failing w/ a 503 status code, which in turn fails the CORS preflight request.
Weāre currently investigating the Objects API errors and looking into fixes.
Hi @fabians
Indeed it was a server issue, as the local app is now able to load Speckle streams in the viewer. Earlier I tried the URL using curl and got the same ā503 - service unavailableā error. Also the models (tried IFC) were not uploading to Speckle from the browser. Was there an issue with the server / maintenance going on recently?
Thanks for your responses!
Hey @dushyant
Yes, there was an issue on the server over his weekend where the objects API was partially unavailable - the issue has now been fixed, can you please try again?
Hey @teocomi
Yes, itās working now
Maybe we create a page where some endpoints are called and it shows the status of the services
Thank you!
We actually already have: https://status.speckle.systems/
Definitely should make this more widely visible
Kudos to @iainsproat
Oh, great! Yes, definitely it must be linked to from more places on Speckle.