This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Json and data
#8
(17.03.2020, 19:57)AlexLV Wrote: Daniel,

I am using latest FW 20191015 RC1 available.

I changed code as benanderson_475  advised, but anyway error in my error log:

Resident script:4: bad argument #1 to 'decode' (string expected, got nil)
stack traceback:
[C]: in function 'decode'

I think this means that it called the json.decode(data) function but no string was found (to be decoded) in the varible data, can you log the response data from the https get command and see what that returns, it may be empty which would explain the error
Reply


Messages In This Thread
Json and data - by tomnord - 15.03.2020, 17:02
RE: Json and data - by benanderson_475 - 15.03.2020, 21:14
RE: Json and data - by tomnord - 17.03.2020, 10:10
RE: Json and data - by benanderson_475 - 17.03.2020, 19:31
RE: Json and data - by AlexLV - 17.03.2020, 16:45
RE: Json and data - by Daniel - 17.03.2020, 17:03
RE: Json and data - by AlexLV - 17.03.2020, 19:57
RE: Json and data - by benanderson_475 - 17.03.2020, 20:03
RE: Json and data - by Daniel - 17.03.2020, 21:04
RE: Json and data - by AlexLV - 18.03.2020, 08:42
RE: Json and data - by Daniel - 18.03.2020, 08:53
RE: Json and data - by admin - 18.03.2020, 09:25

Forum Jump: