Giter Site home page Giter Site logo

Comments (7)

Jeffail avatar Jeffail commented on September 20, 2024

@webfrank when the content encoding is set to gzip the data is decompressed automatically so you shouldn't need that processor.

from benthos.

webfrank avatar webfrank commented on September 20, 2024

Hi, already tried, this is the result:

INFO Running main config from specified file       @service=benthos benthos_version=4.24.0 path=realtime.yaml
INFO Listening for HTTP requests at: http://0.0.0.0:4195  @service=benthos
INFO Launching a benthos instance, use CTRL+C to close  @service=benthos
rw�esample.json��Mn
                   ��9E�u ��{����ɮM�&��w/�H۴�bG6l/d�7����xs�����uzxy=}�=�a��=��Y��y[�h-��/�>>�?������������/��H���w���o����x��Jx?=����D:���w+fk�7T�5�s!�K�
r|��$�N�����'�P�
&��~XZ*DȶO�^]w�G�Ks8����!P�D���

Message is not decompressed automatically

from benthos.

Jeffail avatar Jeffail commented on September 20, 2024

Are you sure you're receiving valid gzipped content?

from benthos.

webfrank avatar webfrank commented on September 20, 2024

from benthos.

mihaitodor avatar mihaitodor commented on September 20, 2024

@webfrank I was able to reproduce it using this extension which I assume is the one you used. If you get Benthos to dump the payload to a file, you'll notice that the HTTP request payload contains an extra new line at the end, which I think is a bug in this extension, or maybe the Golang HTTP libraries don't handle this corner case correctly, but I'm inclined to think it's the former. Try it with curl instead and it should work as expected. I'd consider reporting it as a bug on that extension's GitHub repo: https://github.com/Huachao/vscode-restclient

from benthos.

webfrank avatar webfrank commented on September 20, 2024

Hi, with curl it works but benthos doesn't decompress automatically, I need to call "decompress".

from benthos.

mihaitodor avatar mihaitodor commented on September 20, 2024

The input doesn't decompress the payload automatically by design. You'll have to add a decompress processor like you had in your original question. A scanner field could be added to the http_server input as an enhancement, but I'm not sure if it really makes sense.

from benthos.

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.