Comments (4)
@psmolkin @pongngai Sorry for replying late. You're right. This is missed in the fix. We planned the fix in 3.7. Will update when the fix is merged.
from go-pdk.
Hi. Could you share the Go PDK version that is used?
We changed the API definition in later versions of Kong and Go PDK to return byte arrays to fix this issue. Please consider upgrading to the latest version.
from go-pdk.
Hi,
I have the same issue and the same question
@StarlightIbuki I don't think we're talking about the same module and function.
https://github.com/Kong/go-pdk/blob/master/service/response/response.go#L71
This function returns string
and If the body is binary the function returns an error.
Meanwhile, the request.GetRawBody function actually returns byte[]
So I think this is indeed a bug, as go-pdk doesn't provide any way to manipulate the binary body of the response (e.g. gzip) and returns an error
from go-pdk.
Internally tracked: KAG-3790
from go-pdk.
Related Issues (20)
- socket failed: No such file or directory HOT 9
- kong.client.authenticate should support nil values for consumer and credential HOT 1
- Test package Race detected Warning when DoHttps HOT 1
- Add init handler and invoke it after config get deserialized HOT 6
- TestEnv.ClientRes.Status is not behaving as expected when ExitStatus is called. HOT 4
- Question: Consumer Group Plugin HOT 2
- How can I share a Golang object between different phases quickly? HOT 2
- Missing kong.client.tls package HOT 1
- kong.Response.Exit() Hanging HOT 1
- How to set a variable to Kong Context while doing unit tests? HOT 9
- Build example plugins in CI
- Need support for HeaderFilter and BodyFilter phases HOT 3
- Question: How to reload plugin configuration? HOT 2
- How can i use custom golang plugin on kong ingress controller?
- Apparently the data set into shared context is not being freed HOT 2
- Reference code for unit testing custom plugins HOT 1
- How to get Consumers List
- Feature request: Add SetHeader in Request
- Body always empty string
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 go-pdk.