membphis commented on issue #1152: request help: fail to mqtt-proxy request URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590278476 I used your raw TCP data, it works fine. Here is the test case. I think Apache APISIX can support your MQTT data, and it has forward your data to upstream. please confirm your upstream status is fine. ``` === TEST 1: set route(id: 1) --- config location /t { content_by_lua_block { local t = require("lib.test_admin").test local code, body = t('/apisix/admin/stream_routes/1', ngx.HTTP_PUT, [[{ "remote_addr": "127.0.0.1", "plugins": { "mqtt-proxy": { "protocol_name": "MQTT", "protocol_level": 4, "upstream": { "ip": "127.0.0.1", "port": 1995 } } } }]] ) if code >= 300 then ngx.status = code end ngx.say(body) } } --- request GET /t --- response_body passed --- no_error_log [error] === TEST 2: hit route --- stream_enable --- stream_request eval "\x10\x18\x00\x04\x4d\x51\x54\x54\x04\x06\x00\x3c\x00\x05\x31\x31\x31\x31\x31\x00\x03\x6c\x77\x74\x00\x00" --- stream_response hello world --- no_error_log [error] ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
