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

API Query Type not found #290

Open
hutchpe opened this issue Oct 3, 2024 · 1 comment
Open

API Query Type not found #290

hutchpe opened this issue Oct 3, 2024 · 1 comment
Assignees
Labels
possible-bug Something isn't working

Comments

@hutchpe
Copy link

hutchpe commented Oct 3, 2024

Deployment Type

Docker

Version

v2.0.4

Steps to Reproduce

I am unable to execute a query via the API on both my own instance of Hyperglass as well as the demo instance at https://demo.hyperglass.dev/api/query. When attempting to send a ping query via the API, I receive the output "Query Type 'ping' not found.". I have tried "ping", "traceroute" and "bgp route" query types but get the same error.

JSON contents used for the query on the demo site:
{ "queryLocation": "new_york_ny", "queryTarget": [ "8.8.8.8" ], "queryType": "ping" }

Expected Behavior

I expect to see the output from the ping command.

Observed Behavior

See error message below
image
image

Configuration

No response

Devices

No response

Logs

No response

@hutchpe hutchpe added the possible-bug Something isn't working label Oct 3, 2024
@N0Ball
Copy link

N0Ball commented Nov 3, 2024

Hello, according to https://demo.hyperglass.dev, the query type of New York, NY is __hyperglass_juniper_ping__ (which is a default built-in command), instead of ping. You can try it with the curl command (or the GUI application)

curl -X POST -H "Content-Type: application/json" https://demo.hyperglass.dev/api/query --data '{"q
ueryLocation":"new_york_ny","queryTarget":["8.8.8.8"],"queryType":"__hyperglass_juniper_ping__"}'

this will work.
Similarily traceroute is __hyperglass_juniper_traceroute__.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants