Code Monkey home page Code Monkey logo

kong-plugin-reedelk-transformer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

empty21

kong-plugin-reedelk-transformer's Issues

Downstream reedelk-transformer with Chunked Transfer Encoding

I'm trying to use the downstream reedelk-transformer to transform my backend service's boby response, but my backend returns the response "Chunked" and I'm getting the error below.

I got the same error with both kong versions 2.1.4 and 2.4.0.

Is it possible to use the downstream reedelk-transformer with Chunked Transfer Encoding response?

Backend response headers:

Content encoding: gzip
Transfer-Encoding: chunked

kong.yml

_format_version: "2.1"
services:
- name: callcontrol
  url: https://service_host:port/resource
  plugins:
  - name: reedelk-transformer
    config:
      downstream_transformer_url: http://192.168.197.128:8282/api/message
  routes:
  - name: callcontrol
    paths:
    - /callcontrol/v1

Console error:

2021/05/11 02:06:08 [error] 32#0: *21 failed to run body_filter_by_lua*: /usr/local/share/lua/5.1/socket/http.lua:131: attempt to concatenate local 'v' (a table value)
kong_nodb | stack traceback:
kong_nodb | 	[C]: in function 'request'
kong_nodb | 	.../kong/plugins/reedelk-transformer/downstream_handler.lua:49: in function 'handle_body'
kong_nodb | 	...are/lua/5.1/kong/plugins/reedelk-transformer/handler.lua:25: in function <...are/lua/5.1/kong/plugins/reedelk-transformer/handler.lua:23>
kong_nodb | 	/usr/local/share/lua/5.1/kong/init.lua:265: in function 'execute_plugins_iterator'
kong_nodb | 	/usr/local/share/lua/5.1/kong/init.lua:1191: in function 'body_filter'
kong_nodb | 	body_filter_by_lua:2: in main chunk while sending to client, client: 192.168.197.128, server: kong, request: "GET /callcontrol/v1 HTTP/1.1", upstream: "https://service_host:port/resource", host: "192.168.197.128:8000"
kong_nodb | 192.168.197.128 - - [11/May/2021:02:06:08 +0000] "GET /callcontrol/v1 HTTP/1.1" 400 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36"

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.