This message was deleted.
# suitescript
s
This message was deleted.
h
Error in the console log
m
Can you click on the … in between the brackets after SuiteScriptError and then the … in between the parentheses after “message” in the console log.
h
@Michael looks like 'Invalid data format"
b
use an actual object instead of an array for the headers
🙏 1
👆 1
h
Ahh good catch, thanks @battk 😄
@battk One more question. Now i got this new error "JSON cannot be fully parsed"
b
that looks specific to your account, so find the script that throws that particular error
h
this is the error of the client script above calling the restlet
I'm trying to send this array "customerData" to Restlet but it would not fully parsed
b
it doesnt sound like you understand the problem at all
so you want to take a look at if the client script or the restlet is throwing the error
if you dont know what an error in the client script looks like, throw one yourself and take a look at the console
same thing for the restlet, though you can also take a look at the execution logs for the restlet instead
h
Figured it out. thanks