06.02.2023, 10:59 (This post was last modified: 06.02.2023, 11:02 by ks04.)
Hi There,
I have an iZone AC unit which I can query off API POST commands however am having issues getting the same result from the LM device (SHAC).
I am able to send POST commands fine via postman and receive the expected result, and installed LUA on my mac and was able to get the expected result, however, I am getting an error response back from the target device.
Has anyone encountered anything similar? Does the LM device add any additional gumph or formatting into the POST request which might be throwing this off? Open to all ideas
(Note, I also tried running LUA 4.1 locally and got the same result as running the later version)
Can you post the raw request that is sent from Postman? Some devices can't understand certain headers or headers must be in a specific case. LM use canonical header format.
Lua version does not matter, but check which LuaSocket version you have:
(06.02.2023, 11:59)admin Wrote: Can you post the raw request that is sent from Postman? Some devices can't understand certain headers or headers must be in a specific case. LM use canonical header format.
Lua version does not matter, but check which LuaSocket version you have:
Code:
1
print(require('socket')._VERSION)
LuaSocket version on LM is 2.0.2 vs locally is 3.0.0 so this could be contributing to the difference in experience.