Re: [I] [Question] 下载文件重复添加transfer-encoding响应头,报502错误 [shenyu]</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=notifications@shenyu.apache.org&q=from:%22via+GitHub%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">via GitHub</span></span></a></span> <span class="date"><a href="/search?l=notifications@shenyu.apache.org&q=date:20241120" rel="nofollow">Wed, 20 Nov 2024 01:46:06 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre> DongPoJuShi commented on issue #5788: URL: <a rel="nofollow" href="https://github.com/apache/shenyu/issues/5788#issuecomment-2488095055">https://github.com/apache/shenyu/issues/5788#issuecomment-2488095055</a></pre><pre> 我用的shenyu 2.5.1版本,报错 handle error: [84979ebf-2] Resolved [ShenyuException: response modify failure. java.lang.String can not be converted to JSON] for HTTP GET /sso/verifyCode/test org.apache.shenyu.common.exception.ShenyuException: response modify failure. java.lang.String can not be converted to JSON at org.apache.shenyu.plugin.modify.response.ModifyResponsePlugin$ModifyResponseDecorator.modifyBody(ModifyResponsePlugin.java:163) ~[shenyu-plugin-modify-response-2.5.1.jar!/:2.5.1] Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: Error has been observed at the following site(s): *__checkpoint ⇢ org.apache.shenyu.web.configuration.ErrorHandlerConfiguration$1 [DefaultWebFilterChain] *__checkpoint ⇢ cn.dev33.satoken.reactor.filter.SaReactorFilter [DefaultWebFilterChain] *__checkpoint ⇢ org.apache.shenyu.web.filter.LocalDispatcherFilter [DefaultWebFilterChain] *__checkpoint ⇢ org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain] *__checkpoint ⇢ HTTP GET "/sso/verifyCode/test" [ExceptionHandlingWebHandler] 配置如下: ![image](<a rel="nofollow" href="https://github.com/user-attachments/assets/df089dbf-64dc-495b-874e-bd6626a8dc60">https://github.com/user-attachments/assets/df089dbf-64dc-495b-874e-bd6626a8dc60</a>) ![image](<a rel="nofollow" href="https://github.com/user-attachments/assets/89800e0b-c857-4a28-b2c3-ae4462554404">https://github.com/user-attachments/assets/89800e0b-c857-4a28-b2c3-ae4462554404</a>) 看代码的话是将响应转json报错了,下载文件接口返回的二进制流,是有什么设置还是需要升级shenyu版本?感谢您回答 ![image](<a rel="nofollow" href="https://github.com/user-attachments/assets/7691ec80-6584-4f1f-ae32-4a909889f76f">https://github.com/user-attachments/assets/7691ec80-6584-4f1f-ae32-4a909889f76f</a>) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@shenyu.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg31710.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd2.html#31738">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail2.html#31738">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg31811.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg31689.html">[I] [Question] <title>下载文件重复添加transfer-encoding响应头,报502错误...</a></span> <span class="sender italic">via GitHub</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg31710.html">Re: [I] [Question] <title>下载文件重复添加transfer-encoding响...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email tSliceCur"><span class="subject">Re: [I] [Question] <title>下载文件重复添加transfer-encoding响...</span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg31811.html">Re: [I] [Question] <title>下载文件重复添加transfer-encoding响...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg31927.html">Re: [I] [Question] <title>下载文件重复添加transfer-encoding响...</a></span> <span class="sender italic">via GitHub</span></li> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: [I] [Question] <title>下载文件重复添加transfer-encoding响应头,报502错误 [shenyu]"> <input type="hidden" name="msgid" value="I_kwDOCGCHjs6fAzG2-73be257d-ad6b-4a78-b59b-3b52bd897d2b@gitbox.apache.org"> <input type="hidden" name="relpath" value="notifications@shenyu.apache.org/msg31738.html"> <input type="submit" value=" via GitHub "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="notifications@shenyu.apache.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search notifications"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/notifications@shenyu.apache.org/">notifications - all messages</a></li> <li class="icons-about"><a href="/notifications@shenyu.apache.org/info.html">notifications - about the list</a></li> <li class="icons-expand"><a href="/search?l=notifications@shenyu.apache.org&q=subject:%22Re%5C%3A+%5C%5BI%5C%5D+%5C%5BQuestion%5C%5D+%3Ctitle%3E%E4%B8%8B%E8%BD%BD%E6%96%87%E4%BB%B6%E9%87%8D%E5%A4%8D%E6%B7%BB%E5%8A%A0transfer%5C-encoding%E5%93%8D%E5%BA%94%E5%A4%B4%EF%BC%8C%E6%8A%A5502%E9%94%99%E8%AF%AF+%5C%5Bshenyu%5C%5D%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg31710.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg31811.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">I_kwDOCGCHjs6fAzG2-73be257d-ad6b-4a78-b59b-3b52bd897d2b@gitbox.apache.org</li> </ul> </div> </body> </html>