-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getCommand is returning bad content-type #582
Comments
time=2021-07-20T07:55:33.932Z | lvl=DEBUG | corr=9b2c5301-2d0d-4adf-85d2-48d86f02992d | trans=9b2c5301-2d0d-4adf-85d2-48d86f02992d | op=IOTAJSON.HTTP.Binding | from=n/a | srv=n/a | subsrv=n/a | msg=Parsing payload [undefined] | comp=IoTAgent { | comp=IoTAgent |
Response is created in: iotagent-json/lib/bindings/HTTPBinding.js Line 475 in eccfc52
command returned as stringified, so is text/html content-type |
The same implementation is found in UL iotagent also curl -i -X GET 'http://localhost:7896/iot/d?k=0a1hklrll9p8o2xzzdb3t5063&i=disp3&getCmd=1' disp3@close|s=36 |
Fixed by PR #583 |
curl -i -X GET 'http://localhost:7897/iot/json?k=3ballfrt3t4s0e6yrucfe91cx&i=disp1&getCmd=1'
HTTP/1.1 200 OK
X-Powered-By: Express
Content-Type: text/html; charset=utf-8
Content-Length: 20
ETag: W/"14-Nb0rFgrHgIzgTAOGKlZeMQdva9E"
Date: Tue, 20 Jul 2021 07:50:33 GMT
Connection: keep-alive
Keep-Alive: timeout=5
{"reset":{"s":"34"}}
The text was updated successfully, but these errors were encountered: