You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: