You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "freemankevin (via GitHub)" <gi...@apache.org> on 2023/03/14 09:37:05 UTC
[GitHub] [apisix] freemankevin opened a new issue, #9064: demo error
freemankevin opened a new issue, #9064:
URL: https://github.com/apache/apisix/issues/9064
### Current State
demo can't go on.
https://apisix.apache.org/docs/apisix/tutorials/expose-api/
```shell
$ curl -i -X GET "http://127.0.0.1:9080/get?foo1=bar1&foo2=bar2" -H "Host: example.com"
HTTP/1.1 404 Not Found
Date: Tue, 14 Mar 2023 09:34:26 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: APISIX/3.2.0
{"error_msg":"404 Route Not Found"}
```
### Desired State
`docker-compose` deploy it .
```shell
$ curl -i -X GET "http://127.0.0.1:9080/get?foo1=bar1&foo2=bar2" -H "Host: example.com"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] freemankevin commented on issue #9064: demo error
Posted by "freemankevin (via GitHub)" <gi...@apache.org>.
freemankevin commented on issue #9064:
URL: https://github.com/apache/apisix/issues/9064#issuecomment-1467751224
`api` is ok.
```shell
$ curl -i -X GET "http://httpbin.org:80/anything/xxx?arg=10"
HTTP/1.1 200 OK
Date: Tue, 14 Mar 2023 09:43:31 GMT
Content-Type: application/json
Content-Length: 372
Connection: keep-alive
Server: gunicorn/19.9.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
{
"args": {
"arg": "10"
},
"data": "",
"files": {},
"form": {},
"headers": {
"Accept": "*/*",
"Host": "httpbin.org",
"User-Agent": "curl/7.29.0",
"X-Amzn-Trace-Id": "Root=1-641041c3-05f3876743ef87636ddc69cb"
},
"json": null,
"method": "GET",
"origin": "59.42.206.240",
"url": "http://httpbin.org/anything/xxx?arg=10"
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] demo error [apisix]
Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 closed issue #9064: demo error
URL: https://github.com/apache/apisix/issues/9064
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] demo error [apisix]
Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #9064:
URL: https://github.com/apache/apisix/issues/9064#issuecomment-1857695254
Because the route wasn't created. Please follow these tutorials for a better experience: https://docs.api7.ai/apisix/getting-started/
The same content are also available on the apache website now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org