Open MartinP1 opened 1 week ago
I have not tested the behaviour with current beta version! Not sure whether present in beta too. Will remove the check in the issue text above.
EDIT: Now Tested with 8.6.0 - same behaviour...
Please Test with current beta. Thats the pirpose of the check.
Otherwise the issue might be closed.
I have only one instance of ioBroker (the "productive" one), and do not want to bring instability to my system by beta adapters.
Is it possible to install a second "beta" instance of javascript adapter to my system?
That is the only thing I am able to offer ...
this issue also exists in newest beta, per the doku 2nd param could be an object, but this is not working, only strings lead to a succesful result
I'm sure that
Script type
JavaScript
The problem
Behavior: It seems, that the examples concerning the httpPost() call are misleading. In my example, queries for lua pages of fritzbox are issued. I was not able to construct a JSON-pattern, that is working. A raw passing of body text was successful.
I think it would be helpful, either to correct the documentation, or to change the behaviour of the API-call to be conform with the documentation.
httpPost replacement of the following code:
this code works (adoptation of url to an "Echo Server" for http-posts)
this does not:
It seems, that there is an internal "Jsonification" of second parameter
Response of echo server to first variant (working):
Response of echo server to second variant (not working with fritzbox)
iobroker.current.log (in debug mode!)
No response
Version of nodejs
20.15.0
Version of ioBroker js-controller
5.0.19
Version of adapter
v8.3.1 and 8.6.0