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

OSRMRoadManager::getRoad: request failed. working till android oreo, but shows straight line in android pie #366

Open
utsav-rex opened this issue Jun 11, 2019 · 4 comments

Comments

@utsav-rex
Copy link

It was working fine in android oreo, and still is. but it doesnot work in android pie and i get this error
OSRMRoadManager::getRoad: request failed.

It draws a straight line from point a to point b

The server is working fine, i am getting responses.

59182837-7cf9bc80-8b8a-11e9-934d-ad08f6f9cf35

@utsav-rex utsav-rex changed the title OSRMRoadManager::getRoad: request failed. OSRMRoadManager::getRoad: request failed. working till android oreo, but shows straight line in android pie Jun 11, 2019
@MKergall
Copy link
Owner

Please provide the section of the log showing the exception.

@MKergall
Copy link
Owner

Certainly this:
https://stackoverflow.com/questions/51902629/how-to-allow-all-network-connection-types-http-and-https-in-android-9-pie

, as OSRMRoadManager calls OSRM using http, not https.

This SO post explains the issue, and solutions.

@MKergall
Copy link
Owner

As OSRM demo service now supports https, I just changed so that default call is with https.
Change is pushed. Will be in next release (no delivery date defined...).
In the meantime, using OSRMRoadManager.setService, you can setup https calls.

@dckrOff
Copy link

dckrOff commented May 5, 2022

i have this problem too.
The problem "Error when loading the road - status=2"
everything works fine on android 5+ (API 21+) but the problem happens on android 4.4 (API 19) when I try to draw a route

image

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

3 participants