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

TravelTime sdk should behave better when passing wrong URI #94

Open
bartosz-witkowski opened this issue Jan 20, 2023 · 0 comments
Open

Comments

@bartosz-witkowski
Copy link
Member

Currently when passing a wrong URI the error is quite opaque, e.g constructing TravelTimeSdk with the following URI new URI("http://api.traveltimeapp.com/v4) (not the absence of a trailing slash after v4) will return errors from sdk.send which are non obvious:

Something went wrong when parsing json response: Unrecognized token 'default': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: (String)"default backend - 404"; line: 1, column: 8]
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