Closed huanghuanghui closed 7 months ago
It looks like that your dashboard(2.13) does not match your apisix(3.0.0) , use api instead of dashboard like https://www.bookstack.cn/read/apisix-2.4-zh/plugins-jwt-auth.md
I got the same issue with the jwt-plugin, even though send the request "http://localhost:9080/apisix/plugin/jwt/sign?key=user-key in the container, the response is "400 Request Header Or Cookie Too Large" , check the access log , 1000 times of token-generate requests are sent in a second
now it is fixed, add plugin item "- public-api" to the apisix config.yaml, then restart the instance, the 400 error disappear!
400 Request Header Or Cookie Too Large
try with: https://github.com/apache/apisix/issues/8081#issuecomment-1276959203
This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
considered resolved
Description
I use [apisix-docker](https://github.com/apache/apisix-docker) docker-compose run apisix server,when i try to add
jwt-auth
,use this introduction [apisix-2.4-zh-plugins-jwt-auth](https://www.bookstack.cn/read/apisix-2.4-zh/plugins-jwt-auth.md). I curl this request/apisix/plugin/jwt/sign
to get Authorization Key,Apisix responsethis is my consumer configuraion:
my route configuration:
Environment
APISIX version (run
apisix version
):Operating system (run
uname -a
):OpenResty / Nginx version (run
openresty -V
ornginx -V
):etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info
):APISIX Dashboard version, if relevant: apache/apisix-dashboard:2.13-alpine
Plugin runner version, for issues related to plugin runners:
LuaRocks version, for installation issues (run
luarocks --version
):