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

prime_server.cpp:455 proxy_t: bad_function_call #2985

Closed
bmarcco opened this issue Apr 7, 2021 · 3 comments
Closed

prime_server.cpp:455 proxy_t: bad_function_call #2985

bmarcco opened this issue Apr 7, 2021 · 3 comments

Comments

@bmarcco
Copy link

bmarcco commented Apr 7, 2021

When send request to localhost:8002/route?json={"verbose":true,"locations":[{"lat":42.358528,"lon":-83.271400},{"lat":42.996613,"lon":-78.749855}],"costing":"bicycle","costing_options":{"bicycle":{"bicycle_type":"road"}},"directions_options":{"units":"miles"},"id":"12abc3afe23984fe"}

I get an error "[ERROR] src/prime_server.cpp:455 proxy_t: bad_function_call"

@bmarcco bmarcco changed the title valhalla_service: command not found prime_server.cpp:455 proxy_t: bad_function_call Apr 7, 2021
@kevinkreiser
Copy link
Member

i have an inkling of how this could happen but I havent vetted that yet. if im right the bug would be in prime_server though not in valhalla.

@kevinkreiser
Copy link
Member

this is the line in question: https://github.com/kevinkreiser/prime_server/blob/master/src/prime_server.cpp#L435

im not sure how it could go wrong. im pretty sure that the language allows converting std::function to bool for the semantic of: does this functor have a callable object attached or is it empty.

@bmarcco we should migrate this issue to the prime_server repo. ill do that now

@chaitu2chowdary
Copy link

hi, @bmarcco Did you solve this issue?
I get the same error as you got.
is there any workaround?
Thanks in advance.

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