OpenAPI 1.2

FREEMIUM
By TransLoc | Updated 12 days ago | Location
Popularity

9.9 / 10

Latency

106ms

Service Level

100%

Health Check

N/A

Back to All Discussions

400 Bad Request when requesting routes, stops, or arrival times and limiting by agency

Rapid account: Shyamu
shyamu
9 years ago

Service is returning a 400 error with message “Specify valid agencies to access this resource.” I am trying to access routes, stops and arrival times and limiting by agency.

This started happening last night.

Some URLs…

https://transloc-api-1-2.p.mashape.com/routes.json?agencies=116

https://transloc-api-1-2.p.mashape.com/arrival-estimates.json?agencies=12

Rapid account: Transloc
transloc Commented 9 years ago

@awbauer: Can you verify that it’s working now? If it is not, please re-open this ticket.

Rapid account: Awbauer
awbauer Commented 9 years ago

This has cropped back up. Callback workaround no longer works.

Rapid account: Transloc
transloc Commented 9 years ago

Looks like Mashape has resolved the issue. I think we are good now.

Rapid account: Emajewicz
emajewicz Commented 9 years ago

awbauer thank you for the workaround! This is a good temporary solution.

Rapid account: Transloc
transloc Commented 9 years ago

Hi all,
Mashape is acting strange as it doubles up the HTTP get parameters, For example, we are receiving requests like this all over the place:

/api/1.2/arrival-estimates.json?agencies=20&routes=4000032?routes=4000032&agencies=20

Apparently the original user only queried for this:

/api/1.2/arrival-estimates.json?agencies=20&routes=4000032

and this caused a parsing error for requests.

We will be getting in touch with Mashape to resolve this ASAP. Sorry for the inconvenience.

Rapid account: Awbauer
awbauer Commented 9 years ago

Although – bizarrely – it doesn’t seem to add a callback.

Rapid account: Awbauer
awbauer Commented 9 years ago

Seeing the same error here; very frustrating. The requests do seem to come back okay when the callback parameter is added.

Andrew Bauer

UI Developer, Boston University

Rapid account: Emajewicz
emajewicz Commented 9 years ago

Can we get an update on if someone is working on this?

Join in the discussion - add comment below:

Login / Signup to post new comments