You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "francoeder (via GitHub)" <gi...@apache.org> on 2023/07/14 07:01:06 UTC
[GitHub] [apisix] francoeder opened a new issue, #9834: 400 Request Header Or Cookie Too Large
francoeder opened a new issue, #9834:
URL: https://github.com/apache/apisix/issues/9834
### Description
Estou nos meus primeiros passos com o Apache APISIX.
I just followed the step by step contained in this page [apisix-workshop](https://boburmirzo.github.io/apisix-workshop/#_route_configuration), promoted by Bobur Umurzokov.
What did I do:
- I uploaded the containers by the docker-compose command
- I created a route to an api that I already have published
- I created an upstream
- I edited the created route to consider the created upstream
However, when invoking a GET request for the mapped route, I get the error "400 Request Header Or Cookie Too Large".
`curl -i -X GET "http://127.0.0.1:9080/api/v1/conteudos"`
Can anyone help me?
### Environment
- APISIX version (run `apisix version`): 2.13.1
- Operating system (run `uname -a`): Windows
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`): ???
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): 3.4.15
- APISIX Dashboard version, if relevant: 2.10.1
- Plugin runner version, for issues related to plugin runners: -
- LuaRocks version, for installation issues (run `luarocks --version`): -
--
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
Re: [I] 400 Request Header Or Cookie Too Large [apisix]
Posted by "sevensolutions (via GitHub)" <gi...@apache.org>.
sevensolutions commented on issue #9834:
URL: https://github.com/apache/apisix/issues/9834#issuecomment-1957778874
Because APISIX uses nginx under the hood, i solved it by adding this to my config.yml
```yml
nginx_config:
http_server_configuration_snippet: |
large_client_header_buffers 4 32k;
```
--
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] Revolyssup commented on issue #9834: 400 Request Header Or Cookie Too Large
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #9834:
URL: https://github.com/apache/apisix/issues/9834#issuecomment-1637394834
@francoeder You can close this issue. Thanks
--
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] 400 Request Header Or Cookie Too Large [apisix]
Posted by "wangjinxiang0522 (via GitHub)" <gi...@apache.org>.
wangjinxiang0522 commented on issue #9834:
URL: https://github.com/apache/apisix/issues/9834#issuecomment-2829538113
> Because APISIX uses nginx under the hood, i solved it by adding this to my config.yml
>
> nginx_config:
> http_server_configuration_snippet: |
> large_client_header_buffers 4 32k;
am still getting 400 Request Header Or Cookie Too Large even after putting above changes
--
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] francoeder commented on issue #9834: 400 Request Header Or Cookie Too Large
Posted by "francoeder (via GitHub)" <gi...@apache.org>.
francoeder commented on issue #9834:
URL: https://github.com/apache/apisix/issues/9834#issuecomment-1636006208
The requested information is below.
Route configuration
```
{
"uri": "/api/v1/conteudos",
"name": "api-conteudos-dev",
"methods": [
"GET",
"POST",
"PUT",
"DELETE",
"PATCH",
"HEAD",
"OPTIONS",
"CONNECT",
"TRACE"
],
"plugins": {
"redirect": {
"http_to_https": true
}
},
"upstream_id": "469405594722239177",
"status": 1
}
```
Upstream configuration
```
{
"nodes": {
"api-conteudos-dev.blackpond-16d54dce.westus2.azurecontainerapps.io": 1
},
"timeout": {
"connect": 10,
"send": 10,
"read": 10
},
"type": "roundrobin",
"scheme": "http",
"pass_host": "pass",
"name": "api-conteudos-dev",
"keepalive_pool": {
"idle_timeout": 60,
"requests": 1000,
"size": 320
}
}
```
Note: The access.log and error.log files show nothing different after executing the offending request (`curl -i -X GET "http://127.0.0.1:9080/api/v1/conteudos"`).
Thanks in advance for the help!
--
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] francoeder commented on issue #9834: 400 Request Header Or Cookie Too Large
Posted by "francoeder (via GitHub)" <gi...@apache.org>.
francoeder commented on issue #9834:
URL: https://github.com/apache/apisix/issues/9834#issuecomment-1637165194
I managed to solve the problem.
This thread helped me 👉 https://github.com/apache/apisix/issues/6296
I needed to configure a reverse proxy plugin in my route, considering the domain of my API (Same domain used in the upstream) and Voilà ! I was able to consume my API via APISIX Api Gateway.
I hope it helps someone in the future.
--
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] 400 Request Header Or Cookie Too Large [apisix]
Posted by "rahulracker7539 (via GitHub)" <gi...@apache.org>.
rahulracker7539 commented on issue #9834:
URL: https://github.com/apache/apisix/issues/9834#issuecomment-2092616008
> Because APISIX uses nginx under the hood, i solved it by adding this to my config.yml
>
> ```yaml
> nginx_config:
> http_server_configuration_snippet: |
> large_client_header_buffers 4 32k;
> ```
am still getting 400 Request Header Or Cookie Too Large even after putting above changes
--
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] Revolyssup commented on issue #9834: 400 Request Header Or Cookie Too Large
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #9834:
URL: https://github.com/apache/apisix/issues/9834#issuecomment-1635434979
@francoeder Can you paste the exact route and upstream configuration that you have configured?
--
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] francoeder closed issue #9834: 400 Request Header Or Cookie Too Large
Posted by "francoeder (via GitHub)" <gi...@apache.org>.
francoeder closed issue #9834: 400 Request Header Or Cookie Too Large
URL: https://github.com/apache/apisix/issues/9834
--
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