satoshipay / solar

🌞 Stellar wallet. Secure and user-friendly.
https://solarwallet.io
MIT License
191 stars 59 forks source link

Fetch error when accessing lumen details page #1194

Closed ebma closed 3 years ago

ebma commented 3 years ago

An error is thrown when navigating to the lumen details page which makes the app crash when trying to return to the previous screen. While trying to reproduce on testnet I always encountered a "Failed to fetch" error originating from useTickerAssets().

Access to fetch at 'https://ticker-testnet.stellar.org/assets.json' from origin 'http://localhost:3000' 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.
19271
ebma commented 3 years ago

Seems like this issue does not exist anymore. Maybe SDF changed something that broke the ticker service and fixed it again.

andywer commented 3 years ago

Great! (That it's already fixed)

Maybe they just suffered from a temporary service outage. If the service is down, it cannot send the CORS headers either, oftentimes leading to a CORS error cascading the actual issue.