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
docs: getting-started-ip example doesn't work the api consumer request returns 404 #11205
Comments
I have try http://httpbin.org/ is working . https://httpbin.org is working too. |
I cannot reproduce either. The HTTP port with httpbin.org should work. When you create the route, did it create successfully with a 201 response code? Sometimes the etcd nodes take a couple seconds to be ready and if you happen to be creating routes during then, the route is not created. |
Yes direct connections to http://httpbin.org/ work but connections through APISIX with a route to httpbin.org:80 doesnt work http://127.0.0.1:9080/ip.
I just recreated the situation using the documentation curl -sL https://run.api7.ai/apisix/quickstart | sh
curl -i "http://127.0.0.1:9180/apisix/admin/routes" -X PUT -d '
{
"id": "getting-started-ip",
"uri": "/ip",
"upstream": {
"type": "roundrobin",
"nodes": {
"httpbin.org:80": 1
}
}
}'
curl "http://127.0.0.1:9080/ip" |
will try it again on a Mac to see if its WSL related |
Ok I can confirm this is an oddity of running it on Windows WSL2. This works fine on a Mac. Perhaps the documentation should mention WSL2 having oddities? |
I think it should be more specific than "oddities" if this goes on doc and should be understood better. I don't have windows system and cannot investigate further. If you have any ideas, feel free to open a PR. Thanks. |
Need someone with WSL2 environment to check and determine the next actionable item for this issue. |
Current State
The documentation on this page: https://apisix.apache.org/docs/apisix/getting-started/configure-routes/
states to use
when i use that and then run
I get
Desired State
I think the admin request should use 443 because that works
The text was updated successfully, but these errors were encountered: