```error code: JS_EXCEPTION error message:{"type":...
# suitescript
c
Copy code
error code: JS_EXCEPTION
error message:{"type":"error.SuiteScriptError","name":"INVALID_RETURN_DATA_FORMAT","message":"Invalid data format. You should return TEXT.","stack":["createError(N/error)"],"cause":{"name":"INVALID_RETURN_DATA_FORMAT","message":"Invalid data format. You should return TEXT."},"id":"","notifyOff":false,"userFacing":true}
r
this wouldn’t be caused by a text accept header being passed to the restlet would it? just a thought ex: in Postman, in the Headers, use: Accept: application/json Content-Type: application/json
Our production restlets do not stringify json
c
yep. I screwed up my request header (fat fingered) thanks