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

XML data could not be parsed/redirection forbidden error #321

Open
davidc538 opened this issue Oct 3, 2018 · 2 comments
Open

XML data could not be parsed/redirection forbidden error #321

davidc538 opened this issue Oct 3, 2018 · 2 comments

Comments

@davidc538
Copy link

davidc538 commented Oct 3, 2018

even just this line of code...
acc = SteamId.from_steam_id('STEAM_0:0:16889404')
gives me the following error...
XML data could not be parsed: redirection forbidden: http://steamcommunity.com/profiles/76561197994044536?xml=1 -> https://steamcommunity.com/profiles/76561197994044536?xml=1
am I missing a gem or something?

@koraktor
Copy link
Owner

koraktor commented Oct 3, 2018

Looks like Valve started redirecting to HTTPS (which is good). Apparently open-uri doesn’t like the redirect, though.
I’ll have a look if there’s a global option for that as a workaround. Another workaround would be monkey-patching SteamId#base_url.

@davidc538
Copy link
Author

davidc538 commented Oct 4, 2018

It looks like this issue is solved by using RVM to install ruby 2.5 instead of ruby 2.3 from the debian repos. Maybe the base_url in the gem should be changed?

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

2 participants