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

Apisix routes dont work #38

Open
johnruben-bhn opened this issue Oct 4, 2024 · 0 comments
Open

Apisix routes dont work #38

johnruben-bhn opened this issue Oct 4, 2024 · 0 comments

Comments

@johnruben-bhn
Copy link

Hello Team,

I installed the adaptor and was able to create routes via the admin api.
The created routes are available in the mysql DB.

When i try to access the route
curl -i -X GET "http://127.0.0.1:9080/get"

i am getting a
HTTP/1.1 404 Not Found
Date: Fri, 04 Oct 2024 00:19:00 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: APISIX/3.10.0

{"error_msg":"404 Route Not Found"}

Can you please help as i am not sure why i am doing wrong.

Route creation
curl -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '{
"methods": ["GET"],
"uris": ["/get"],
"upstream": {
"nodes": {
"httpbin.org:80": 1
}
}
}' http://localhost:9180/apisix/admin/routes/2

Route Get
curl -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' http://localhost:9180/apisix/admin/routes/2
{"createdIndex":16,"value":{"upstream":{"pass_host":"pass","type":"roundrobin","scheme":"http","hash_on":"vars","nodes":{"httpbin.org:80":1}},"status":1,"update_time":1728001385,"uris":["/get"],"methods":["GET"],"priority":0,"create_time":1727999934,"id":"2"},"key":"/apisix/routes/2","modifiedIndex":19}

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

1 participant