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

Comma separator for OTP mode parameter should not be encoded. #141

Open
binh-dam-ibigroup opened this issue Jun 3, 2021 · 0 comments
Open

Comments

@binh-dam-ibigroup
Copy link
Collaborator

binh-dam-ibigroup commented Jun 3, 2021

Observed behavior

Busgnag errors are observed as follows:

Unable to get POJO from json for OtpResponse
com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'org': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: (String)"org.glassfish.jersey.server.ParamException$QueryParamException: HTTP 404 Not Found HTTP 404 Not Found"; line: 1, column: 4]

This is caused by the OTP request sent by the middleware where the MODE url parameter appears as
for instance WALK%2CBUS%2CSUBWAY%2CTRAM.

Expected behavior

The mode parameter above in the OTP request should appear as WALK,BUS,SUBWAY,TRAM.

Steps to reproduce the problem

Observed in these Bugsnag reports:

Any special notes on configuration used

ATL Rides

Version of otp-middleware and/or OpenTripPlanner if applicable (exact commit hash or branch name)

dev branch.

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