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

Bug with spaces? #12

Open
swamiofsuccess opened this issue Jun 19, 2022 · 0 comments
Open

Bug with spaces? #12

swamiofsuccess opened this issue Jun 19, 2022 · 0 comments
Assignees
Labels

Comments

@swamiofsuccess
Copy link

The API is working fine with URLs until one of them has a space in it. (I replaced the space with %20 before sending it.) But, I get this error:

{"error":{"timestamp":"2022-06-18 07:41:55 EST","status":400,"title":"Failed Loading XML","detail":["Start tag expected, '<' not found"],"url":"/xml-to-json/?xml=https://boardgamegeek.com/xmlapi/search?search=ticket%20to%20ride"},"meta":{"version":"2.0.2","copyright":"Copyright 2011-2022 Fact Maven","link":"https://factmaven.com/","authors":["Ethan O'Sullivan","Edward Bebbington"]}}

Here's the URL I used: https://api.factmaven.com/xml-to-json/?xml=https://boardgamegeek.com/xmlapi/search?search=ticket%20to%20ride

More than possible that this is my issue, but read through the other issues and comments. Might be the same issue as this?

I tried it with some other URLs and seems to fail when there's a %20.
This works: https://api.factmaven.com/xml-to-json/?xml=https://boardgamegeek.com/xmlapi/search?search=Crossbows
This doesn't: https://api.factmaven.com/xml-to-json/?xml=https://boardgamegeek.com/xmlapi/search?search=Crossbows%20and

Thanks for any help you can offer!

@ethan-jinks ethan-jinks self-assigned this Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants