[GitHub] [shenyu] ColdFragrance opened a new issue, #4477: [Question] </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:20230315" rel="nofollow">Wed, 15 Mar 2023 23:10:44 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre> ColdFragrance opened a new issue, #4477: URL: <a rel="nofollow" href="https://github.com/apache/shenyu/issues/4477">https://github.com/apache/shenyu/issues/4477</a></pre><pre> ### Question ShenYu-2.5.0中自定义插件doExecute方法 In ShenYu-2.5.0, I defined a plugin as follow `protected Mono doExecute(final ServerWebExchange exchange, final ShenyuPluginChain chain, final SelectorData selector, final RuleData rule) { Flux<DataBuffer> fluxMap = exchange.getRequest().getBody(); fluxMap.subscribe(dataBuffer -> { InputStream inputStream = dataBuffer.asInputStream(); try { byte[] bytes = new byte[0]; bytes = new byte[inputStream.available()]; inputStream.read(bytes); String body = new String(bytes); log.info("请求body信息 >> {}", body); } catch (IOException e) { e.printStackTrace(); } finally { if(null != inputStream) { try { inputStream.close(); } catch (IOException e) { e.printStackTrace(); } } } }); return chain.execute(exchange); } ` And, request command is ` curl -X POST <a rel="nofollow" href="http://localhost:9077/flow/one?n=999">http://localhost:9077/flow/one?n=999</a> -H "Content-Type: application/json" -H "X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjc4MzI0ODAyfQ.9QjlqXGYpXFXR70w3RFCFJ2dcwbrnrY2gTHyiVyF5io" -d "{"a":"1","b":"2","c":"3"}" ` When I use oracle model via changing spring.profiles.active to 'oracle' in application.yaml, it is works.But use mysql model,it cannot enter fluxMap.subscribe(dataBuffer -> {}) fragment. My Questions: 1.How to get RequestBody? 2.What's the difference between oracle and mysql? Addtionally,Shenyu-Admin is works when mysql model,but not works when oracle model,such as ![image](<a rel="nofollow" href="https://user-images.githubusercontent.com/31916039/225530215-24e9ce9c-9f25-4e6e-9485-e930459a41db.png">https://user-images.githubusercontent.com/31916039/225530215-24e9ce9c-9f25-4e6e-9485-e930459a41db.png</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.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="msg24214.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#24215">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#24215">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg24245.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email tSliceCur"><span class="subject">[GitHub] [shenyu] ColdFragrance opened a new issue, #4477: [Que...</span> <span class="sender italic">via GitHub</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg24245.html">[GitHub] [shenyu] moremind commented on issue #4477: [Ques...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg24246.html">[GitHub] [shenyu] moremind commented on issue #4477: [Ques...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg24254.html">[GitHub] [shenyu] li-keguo commented on issue #4477: [Ques...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg24258.html">[GitHub] [shenyu] ColdFragrance commented on issue #4477: ...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg24259.html">[GitHub] [shenyu] ColdFragrance commented on issue #4477: ...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg24260.html">[GitHub] [shenyu] moremind commented on issue #4477: [Ques...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg24263.html">[GitHub] [shenyu] ColdFragrance commented on issue #4477: ...</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="[GitHub] [shenyu] ColdFragrance opened a new issue, #4477: [Question] <title>"> <input type="hidden" name="msgid" value="I_kwDOCGCHjs5g9tY6@gitbox.apache.org"> <input type="hidden" name="relpath" value="notifications@shenyu.apache.org/msg24215.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:%22%5C%5BGitHub%5C%5D+%5C%5Bshenyu%5C%5D+ColdFragrance+opened+a+new+issue%2C+%234477%5C%3A+%5C%5BQuestion%5C%5D+%3Ctitle%3E%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg24214.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg24245.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_kwDOCGCHjs5g9tY6@gitbox.apache.org</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9ca61bba8e7e2c82',t:'MTc3MDUwMTA4Mw=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>