Trying to get DataStorage Providers working, and ran into this error in the log:
ERROR: ./L_ALTUIjson.lua:371: Unexpected character at Line 1 character 910: ] (93) when reading array ({ or [ or ' or " or number or boolean or null expected)
Context:
:{"callback":"","parameters":[],"url":"http://127.0.0.1:3480/
^
Is an empty [] parameter string not valid? I have nothing extra to pass.
I’m also assuming, perhaps incorrectly, that the HTTP request comes from the AltUI plugin, rather than the browser, in which case 127.0.0.1 should be OK as the IP of the Vera/openLuup machine?
[quote=“akbooer, post:1, topic:190694”]Trying to get DataStorage Providers working, and ran into this error in the log:
ERROR: ./L_ALTUIjson.lua:371: Unexpected character at Line 1 character 910: ] (93) when reading array ({ or [ or ' or " or number or boolean or null expected)
Context:
:{"callback":"","parameters":[],"url":"http://127.0.0.1:3480/
^
Is an empty [] parameter string not valid? I have nothing extra to pass.
I’m also assuming, perhaps incorrectly, that the HTTP request comes from the AltUI plugin, rather than the browser, in which case 127.0.0.1 should be OK as the IP of the Vera/openLuup machine?[/quote]
The json decoder I use does not like “[]” for some reasons
can you give me more information on the context ? who is calling who with what parameters ? at what time of the whole process is that call hapening and failing ?
the callback is from ALTUI lua device to your url . so your url needs the IP address of your box running the code waiting to be called back. 127.0.0.1 should work if both are on the same box.
[quote=“amg0, post:2, topic:190694”]The json decoder I use does not like “[]” for some reasons
can you give me more information on the context ? who is calling who with what parameters ? at what time of the whole process is that call hapening and failing ?[/quote]
I used this in the newJsonParameters argument for RegisterDataProvider. However, the error occurs in a delay callback routine - I assume when it tries to send a variable change.
the callback is from ALTUI lua device to your url . so your url needs the IP address of your box running the code waiting to be called back. 127.0.0.1 should work if both are on the same box.
[quote=“akbooer, post:3, topic:190694”][quote=“amg0, post:2, topic:190694”]The json decoder I use does not like “[]” for some reasons
can you give me more information on the context ? who is calling who with what parameters ? at what time of the whole process is that call hapening and failing ?[/quote]
I used this in the newJsonParameters argument for RegisterDataProvider. However, the error occurs in a delay callback routine - I assume when it tries to send a variable change.
the callback is from ALTUI lua device to your url . so your url needs the IP address of your box running the code waiting to be called back. 127.0.0.1 should work if both are on the same box.
Yes, that was the plan.[/quote]
I have to change the JSON module. I will revert back to standard dkjson for UI7 and json for UI5. I sent you a beta package for 1138 to try. thx !
Best Home Automation shopping experience. Shop at Ezlo!