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

Unable to validate the Bird MDS API #6

Open
smaorus opened this issue Jul 16, 2019 · 0 comments
Open

Unable to validate the Bird MDS API #6

smaorus opened this issue Jul 16, 2019 · 0 comments

Comments

@smaorus
Copy link

smaorus commented Jul 16, 2019

Hi
I've checked out the code and ran the validator to validate the Bird MDS API.
Ran the command:
python3 validator.py --token <Token> --provider-name Bird

When running validate_trips it fails to parse the result because an error is returned with a status code 500. The content of the result is:

'<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>\n<title>Error 500 Request failed.</title>\n</head>\n<body><h2>HTTP ERROR 500</h2>\n<p>Problem accessing /gov/mds/trips. Reason:\n<pre> Request failed.</pre></p>\n</body>\n</html>\n'

Stack trace:
Traceback (most recent call last): File "validator.py", line 130, in <module> api.validate_trips() File "validator.py", line 57, in validate_trips json = r.json() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I'm also unable to get any meaningful result from the api when querying directly.

Any idea if this should work?
Thanks

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