You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/12 06:38:33 UTC
[GitHub] [apisix] nfrankel opened a new issue, #7656: bug: HTTP methods cannot be configured in stand-alone mode
nfrankel opened a new issue, #7656:
URL: https://github.com/apache/apisix/issues/7656
### Current Behavior
I'm using Apache APISIX 2.14.1.
I've configured stand-alone mode:
```
apisix:
enable_admin: false
config_center: yaml
```
I've configured a simple route:
```
routes:
- uri: /
methods: [GET, PUT, POST]
upstream:
type: roundrobin
nodes:
"httpbin.org": 1
#END
```
When I execute a PUT request, I get a 405:
```
>curl --head -X POST localhost:9080/
HTTP/1.1 405 METHOD NOT ALLOWED
Content-Type: text/html; charset=utf-8
Content-Length: 178
Connection: keep-alive
Date: Fri, 12 Aug 2022 06:23:36 GMT
Allow: GET, OPTIONS, HEAD
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Server: APISIX/2.14.1
```
### Expected Behavior
Stand-alone mode is *the* way to run Apache APISIX in production while following GitOps patterns. I'd expect you can configure HTTP methods the same way as for standard mode.
### Error Logs
_No response_
### Steps to Reproduce
I've described the steps in the first section
### Environment
- APISIX version (run `apisix version`):
```
/usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua version
2.14.1
```
- Operating system (run `uname -a`):
```
Linux 6cd28012c29c 5.10.104-linuxkit #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022 aarch64 Linux
```
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
```
nginx version: openresty/1.19.9.1
built by gcc 10.3.1 20210424 (Alpine 10.3.1_git20210424) built with OpenSSL 1.1.1g 21 Apr 2020
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -DAPISIX_BASE_VER=1.19.9.1.6 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl111/include' --add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.20 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../ngx_stream_lua-0.0.10 --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -Wl,-rpath,/usr/local/openresty/wasmtime-
c-api/lib -L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl111/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl111/lib' --add-module=/tmp/tmp.oYTC5eok64/openresty-1.19.9.1/../mod_dubbo --add-module=/tmp/tmp.oYTC5eok64/openresty-1.19.9.1/../ngx_multi_upstream_module --add-module=/tmp/tmp.oYTC5eok64/openresty-1.19.9.1/../apisix-nginx-module --add-module=/tmp/tmp.oYTC5eok64/openresty-1.19.9.1/../apisix-nginx-module/src/stream --add-module=/tmp/tmp.oYTC5eok64/openresty-1.19.9.1/../wasm-nginx-module --add-module=/tmp/tmp.oYTC5eok64/openresty-1.19.9.1/../lua-var-nginx-module --with-poll_module --with-pcre-jit --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_m
odule --with-http_secure_link_module --with-http_random_index_module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-threads --with-compat --with-stream --with-http_ssl_module
```
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): -
- APISIX Dashboard version, if relevant: -
- Plugin runner version, for issues related to plugin runners: -
- LuaRocks version, for installation issues (run `luarocks --version`):
```
/usr/local/bin/luarocks 3.8.0
LuaRocks main command-line interface
```
--
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] spacewander commented on issue #7656: bug: HTTP methods cannot be configured in stand-alone mode
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #7656:
URL: https://github.com/apache/apisix/issues/7656#issuecomment-1214360294
The `info` level log shows that: `balancer.lua:365: run(): proxy request to 34.227.213.82:80 while connecting to upstream`. So we can know the request is proxied and the 405 is from the upstream.
Also, I wrote a new test to cover it: https://github.com/apache/apisix/pull/7669/files
--
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
[GitHub] [apisix] spacewander commented on issue #7656: bug: HTTP methods cannot be configured in stand-alone mode
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #7656:
URL: https://github.com/apache/apisix/issues/7656#issuecomment-1214359400
I try it locally, and it seems that the 405 is returned by the httpbin itself?
--
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
[GitHub] [apisix] nfrankel closed issue #7656: bug: HTTP methods cannot be configured in stand-alone mode
Posted by GitBox <gi...@apache.org>.
nfrankel closed issue #7656: bug: HTTP methods cannot be configured in stand-alone mode
URL: https://github.com/apache/apisix/issues/7656
--
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
[GitHub] [apisix] nfrankel commented on issue #7656: bug: HTTP methods cannot be configured in stand-alone mode
Posted by GitBox <gi...@apache.org>.
nfrankel commented on issue #7656:
URL: https://github.com/apache/apisix/issues/7656#issuecomment-1214403172
Sorry about the noise, I'm closing the issue
--
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