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

Appropriate message in price API if distance is more than 100 miles. #33

Closed
manoharprabhu opened this issue Feb 26, 2017 · 1 comment
Closed

Comments

@manoharprabhu
Copy link

uber price -s "konena agrahara" -e "mcafee"

Actual response:

(node:5104) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: StatusCodeError: 422 - {"fields":{"start_longitude":"Distance between two points exceeds 100 miles","e
nd_longitude":"Distance between two points exceeds 100 miles","start_latitude":"Distance between two points exceeds 100 miles","end_latitude":"Distance between two points exceeds 100 miles"},"message":"
Distance between two points exceeds 100 miles","code":"distance_exceeded"}
(node:5104) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


@wkuckro
Copy link

wkuckro commented Apr 24, 2017

Or allow calculations between two points more than 100 miles. It is worth it when comparing flight or train options

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

2 participants