Guohao1020 commented on issue #10069: URL: https://github.com/apache/apisix/issues/10069#issuecomment-1687366622
After the log debugging is enabled, you can see that all packets are printed. However, after [id: 0x0c308141] READ COMPLETE, an error occurs with ext-plugin-post-resp.lua:109. If it is a small request response body does not have this problem. ``` 2023/08/22 11:32:01 [warn] 103#103: *240 [lua] init.lua:953: 6e 6f 74 69 63 65 4e 6f 64 65 5c 22 3a 5c |\"noticeNode\":\| |0000baa0| 22 52 45 53 55 4c 54 5f 4e 4f 54 49 43 45 5c 22 |"RESULT_NOTICE\"| |0000bab0| 2c 5c 22 50 4c 41 54 49 44 5c 22 3a 6e 75 6c 6c |,\"PLATID\":null| |0000bac0| 7d 5d 22 7d 3c 2f 72 65 73 75 6c 74 3e 3c 2f 6e |}]"}</result></n| |, context: ngx.timer 2023/08/22 11:32:01 [warn] 103#103: *240 [lua] init.lua:953: 0000bad0| 73 32 3a 51 75 65 72 79 5f 4e 6f 74 69 63 65 52 |s2:Query_NoticeR| |0000bae0| 65 73 70 6f 6e 73 65 3e 3c 2f 73 6f 61 70 3a 42 |esponse></soap:B| |0000baf0| 6f 64 79 3e 3c 2f 73 6f 61 70 3a 45 6e 76 65 6c |ody></soap:Envel| |0000bb00| 6f 70 65 3e |ope> | +--------+-------------------------------------------------+----------------+ , context: ngx.timer 2023/08/22 11:32:02 [warn] 103#103: *240 [lua] init.lua:953: 2023-08-22 03:32:02.042 DEBUG 228 --- [tLoopGroup-10-2] i.n.h.l.LoggingHandler : [id: 0x0c308141] WRITE: 24B +-------------------------------------------------+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f | +--------+-------------------------------------------------+----------------+ |00000000| 04 00 00 14 0c 00 00 00 00 00 06 00 08 00 04 00 |................| |00000010| 06 00 00 00 02 00 00 01 |........ | +--------+-------------------------------------------------+----------------+ , context: ngx.timer 2023/08/22 11:32:02 [warn] 103#103: *240 [lua] init.lua:953: 2023-08-22 03:32:02.042 DEBUG 228 --- [tLoopGroup-10-2] i.n.h.l.LoggingHandler : [id: 0x0c308141] FLUSH , context: ngx.timer 2023/08/22 11:32:02 [warn] 103#103: *240 [lua] init.lua:953: 2023-08-22 03:32:02.043 DEBUG 228 --- [tLoopGroup-10-2] i.n.h.l.LoggingHandler : [id: 0x0c308141] READ COMPLETE , context: ngx.timer 2023/08/22 11:32:02 [error] 50#50: *51520 lua entry thread aborted: runtime error: /usr/local/apisix/apisix/plugins/ext-plugin-post-resp.lua:109: API disabled in the context of body_filter_by_lua* stack traceback: coroutine 0: [C]: in function 'ngx_print' /usr/local/apisix/apisix/plugins/ext-plugin-post-resp.lua:109: in function 'send_chunk' /usr/local/apisix/apisix/plugins/ext-plugin-post-resp.lua:132: in function 'send_response' /usr/local/apisix/apisix/plugins/ext-plugin-post-resp.lua:171: in function 'phase_func' /usr/local/apisix/apisix/plugin.lua:1097: in function 'common_phase' /usr/local/apisix/apisix/init.lua:507: in function 'handle_upstream' /usr/local/apisix/apisix/init.lua:669: in function 'http_access_phase' access_by_lua(nginx.conf:334):2: in main chunk ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
