Comments (7)
@samugi @chobits Could you please take a look?
from kong.
Ok, I'll take a look
from kong.
Hi @theMiddleBlue could you provide a detailed upgrade progress.
I could only reproduce a similar error message when downgrading from the version with request-id feature to release/3.4.x
branch which does not support request id feature. Normally, upgrading will not trigger similar error messages.
My error message is Error: headers: invalid entry 'x-kong-request-id'
, but yours is headers_upstream: invalid entry 'x-kong-request-id'
, note that differences between headers
and headers_upstream
The following is my investigation:
The reason why i found headers x-kong-request-id entry invalid
is that there is x-kong-request-id
in my .kong_env file while current version of kong gateway does not support request-id feature.
$ grep 'x-kong-request-id' -R /Users/xc/work/dev/kong/bazel-bin/build/kong-dev/kong/servroot/.kong_env
/Users/xc/work/dev/kong/bazel-bin/build/kong-dev/kong/servroot/.kong_env:headers = server_tokens,latency_tokens,x-kong-request-id
I think the issue I'm facing is because, previously, i started kong on a version that could generate x-kong-request-id
in .kong_env
file, then when i switched to release/3.4.x without the request_id feature, it will reported Error: headers: invalid entry 'x-kong-request-id'
.
So my steps to reproduce it is as follows:
All the steps are runned under bazel environment
1. build and start kong in some branch with the request-id feature supported, then stop kong
* make build-venv
* start_services
* kong migrations bootstrap
* kong start
* kong stop
3. checkout to `release/3.4.x`
* git fetch origin release/3.4.x
* git checkout release/3.4.x
5. build and start kong in `release/3.4.x` branch, then will find the error message
from kong.
A simple way to resolve your problem is to remove x-kong-request-id
from your .kong_env
file, or just remove this file.
Do not remove this file before stopping kong, otherwise it will report error no this file:....kong_env
, then yourkong stop
will fail. If you encounter the error message of kong stop
, you could manually stop nginx process of kong gateway.
from kong.
A simple way to resolve your problem is to remove
x-kong-request-id
from your.kong_env
file [...]
thank you @chobits for the investigation, I just want to highlight that the workaround described is only applicable to versions of Kong that are expected to not support request-id, but that is not the case on 3.5 where it is supported. We will need additional details on steps to reproduce, Kong deployment details and configuration used by @theMiddleBlue in order to determine the root cause. Thanks.
from kong.
This issue is marked as stale because it has been open for 14 days with no activity.
from kong.
Dear contributor,
We are automatically closing this issue because it has not seen any activity for three weeks.
We're sorry that your issue could not be resolved. If any new information comes up that could
help resolving it, please feel free to reopen it.
Your contribution is greatly appreciated!
Please have a look
our pledge to the community
for more information.
Sincerely,
Your Kong Gateway team
from kong.
Related Issues (20)
- OTEL plugin ignores configured header type for incoming requests HOT 2
- kong does not support internal redirection ?? HOT 20
- Memory usage of kong with DBless more keeps increasing. HOT 3
- Dev Portal: selection of Category Filter is not intuitive HOT 1
- `kong_request_latency_ms` should follow the service or route life cycle
- Kong KIC fails when rate-limiting plugin config.policy is set to cluster HOT 3
- Kong breaks cert-manager certificate creation HOT 12
- db_import with keyauth_credentials fails on re-run HOT 9
- Kong returns 503 error to api-client due to failure in DNS resolution of upstream service HOT 7
- Kong Manager in Kong OSS HOT 1
- REF: A question with cti. Yugabyte issue #12314 HOT 1
- Opentelemetry - span name is Kong HOT 3
- Nil entity returned when using dao select statement on Kong 3.3 Postgres
- Not being able to filter access logs since 3.5.0.2 HOT 6
- 100% CPU usage and keep posting event 'reset_instances' to go plugin server HOT 1
- 100% CPU usage and keep posting event 'reset_instances' to go plugin server HOT 11
- failed to connect: ssl set client certificate failed
- kong can't start by `xpcall` HOT 3
- large discrepancy between request_time and upstream_response_time HOT 4
- "declarative_config.lua:654: table index is nil" with custom lua plugin (via configmap)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kong.