krakend ce v2.6.0 Req/ Resp modifier | Resp.Data is not returning any data

13 views
Skip to first unread message

Hendry Zheng

unread,
Jul 11, 2024, 5:51:58 AMJul 11
to KrakenD Community

Screenshot 2024-07-11 at 16.49.36.pngScreenshot 2024-07-11 at 16.51.17.png
Is this known issue?

Daniel Lopez

unread,
Jul 11, 2024, 10:37:21 AMJul 11
to Hendry Zheng, KrakenD Community
The Data field won't be populated if you are using a `no-op` pipe. In that scenario, the response body is passed as an io.Reader and it's accessible through the Io() method

Kind regards

El jue, 11 jul 2024 a las 11:52, Hendry Zheng (<hen...@xendit.co>) escribió:

Screenshot 2024-07-11 at 16.49.36.pngScreenshot 2024-07-11 at 16.51.17.png
Is this known issue?


--
This email transmission is intended specifically for the use of the individual or entity named above and may contain information that is confidential, privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, or other use of any of the information contained in this email transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by email at the above address and delete it from your computer system; you should not copy the message or disclose its contents to anyone. The content of the message and/or attachments may not reflect the view and opinions of the originating company or any party it is representing.

Pesan surel (email) ini ditujukan secara khusus kepada individu atau entitas yang namanya tercantum di atas dan dapat mengandung informasi yang bersifat rahasia, khusus, dan/atau dikecualikan dari pengungkapan berdasarkan hukum yang berlaku, Apabila Anda bukanlah pihak yang dimaksudkan untuk menerima pesan ini, maka Anda dengan ini telah diberitahukan bahwa segala bentuk tinjauan, pengungkapan, menyalin, mendistribusi, atau segal bentuk penggunaan lainnya terhadap informasi yang terdapat dalam pesan surel (email) adalah perbuatan yang dilarang. Apabila Anda menerima pesan ini karena suatu kesalahan, maka segera informasikan hal tersebut kepada pengirim pesan surel (email) dengan alamat surel (email) yang tercantum di atas dan segera menghapus pesan surel (email) ini dari sistem komputer Anda; Anda tidak diperkenankan untuk menyalin pesan atau mengungkapkan isi surel (email) kepada siapapun. Isi dari pesan dan/atau lampiran tercantum bukan merupakan pandangan dan pendapat dari perusahaan terkait atau pihak yang diwakilkan.
--

--
You received this message because you are subscribed to the Google Groups "KrakenD Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to community+...@krakend.io.
To view this discussion on the web visit https://groups.google.com/a/krakend.io/d/msgid/community/923e06c8-6bad-462a-b3b8-4b3358a1738en%40krakend.io.


--
Logo
Daniel López
CTO

LinkedIn icon   Twitter icon  

Confidentiality Notice: This email, including any attachments, may contain confidential and privileged information for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, please contact the sender immediately and destroy all copies of this email. Thank you. This email has been sent in accordance with the European Union General Data Protection Regulation (EU GDPR).

Hendry Zheng

unread,
Jul 11, 2024, 10:18:02 PMJul 11
to KrakenD Community, Daniel Lopez, KrakenD Community, Hendry Zheng
Hi Daniel!

Appreciate your swift response. I finally got it working! I think it's worth to add additional information in krakend docs regarding response manipulation like how to update the response back by returning the wrapper back with a new reinstate variable. Also maybe to have additional information that if the gzip is enabled by the API, the response should decode. It took me sometime to realise that the response was actually compressed and I had to decompress it then only able to read it properly.

Screenshot 2024-07-12 at 09.16.10.png


Screenshot 2024-07-12 at 09.15.36.pngScreenshot 2024-07-12 at 09.15.49.png
Reply all
Reply to author
Forward
0 new messages