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
error in route_graphhopper #110
Comments
Does graphhopper_pat() return your API key? If I have an invalid API key I get the same result, but a valid one works. I have added a check to return a more useful error message when the API key is invalid in #112 . |
It does return my key , I guess I can check if the key is still valid |
You can try adding silent=FALSE to the route_graphhopper call and then running the request URL and see if that returns a valid result. |
I'll try that |
this is erroring b/c when if (grepl("Wrong credentials", obj$message) == TRUE) {
stop("Invalid API key")
} at these lines: https://github.com/ropensci/stplanr/blob/master/R/routes.R#L213-L215 tried again, with a new API key, which works, but the request fails due to those lines of code above |
I see that now. Should be fixed in #116. |
works great, thanks |
With
route_graphhopper
getting thisAnd I do have my graphhopper PAT in my env vars, so I am guessing that's not the problem
The text was updated successfully, but these errors were encountered: