GithubHelp home page GithubHelp logo

Comments (4)

StarlightIbuki avatar StarlightIbuki commented on August 17, 2024 2

@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.

StarlightIbuki avatar StarlightIbuki commented on August 17, 2024

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.

psmolkin avatar psmolkin commented on August 17, 2024

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.

StarlightIbuki avatar StarlightIbuki commented on August 17, 2024

Internally tracked: KAG-3790

from go-pdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.