You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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}
The text was updated successfully, but these errors were encountered: