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

Cross-Origin call breaks website #1

Open
bdurrer opened this issue Jan 21, 2019 · 2 comments
Open

Cross-Origin call breaks website #1

bdurrer opened this issue Jan 21, 2019 · 2 comments

Comments

@bdurrer
Copy link

bdurrer commented Jan 21, 2019

On the main page there is a blocked Cross-Origin call, which results in the webpage showing up blank.
The call is: https://api.steampowered.com/ISteamNews/GetNewsForApp/v0002/?appid=544550&count=3&maxlength=400&format=json

The resulting JS error:

TypeError: "this.state.news.data is undefined"
	value https://stationeering.com/static/js/main.640f89a3.chunk.js:1:101017
	value https://stationeering.com/static/js/main.640f89a3.chunk.js:1:100926
	lo https://stationeering.com/static/js/1.b53160a1.chunk.js:1:754083
	ao https://stationeering.com/static/js/1.b53160a1.chunk.js:1:753878
	fo https://stationeering.com/static/js/1.b53160a1.chunk.js:1:757624
	Yo https://stationeering.com/static/js/1.b53160a1.chunk.js:1:773291
	Xo https://stationeering.com/static/js/1.b53160a1.chunk.js:1:773668
	Ms https://stationeering.com/static/js/1.b53160a1.chunk.js:1:780201
	Rs https://stationeering.com/static/js/1.b53160a1.chunk.js:1:779581
	ks https://stationeering.com/static/js/1.b53160a1.chunk.js:1:778602
	ts https://stationeering.com/static/js/1.b53160a1.chunk.js:1:777505
	enqueueSetState https://stationeering.com/static/js/1.b53160a1.chunk.js:1:741562
	setState https://stationeering.com/static/js/1.b53160a1.chunk.js:1:689825
	value https://stationeering.com/static/js/main.640f89a3.chunk.js:1:100797
 react-dom.production.min.js:3869

Weirdly, the error showed up on Chrome until I visit some other page on the site, e.g https://stationeering.com/versions/recent
After that, everything seems to loads fine. That trick does not work on FireFox though.
PS: Freshly installed browsers, no cache.

@bdurrer
Copy link
Author

bdurrer commented Jan 21, 2019

It is working again, thanks 👍

@bdurrer bdurrer closed this as completed Jan 21, 2019
@bdurrer
Copy link
Author

bdurrer commented Jan 22, 2019

Seems like it is not fixed. FireFox now breaks when opening the website, but when you hard-reload the page, it works again

@bdurrer bdurrer reopened this Jan 22, 2019
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

1 participant