I followed the Avatar tutorial and keep receiving an error:
Runtime error: mod_parse.lua:348: type ‘function’ is not supported by JSON
The function in the mod_parse.lua that the error line is on is:
function Parse:buildRequestParams( withDataTable, masterKey )
local postData = json.encode( withDataTable )
return self:newRequestParams( postData, masterKey ) --for use in a network request
end
I printed the fileObjId and it comes out to a really long string:
dc21190f-f7a0-4979-9dc3-971c6cba525b-exImage.png
The Parse side saves the userID, username and the password but the avatar is still undefined.
I do have the image in the Resource Directory also.
Thanks for the quick response on the last comment btw.