[In Production setup] SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Hello all,

I faced this error in production side when i perform an event based task. Same code is working on my local but at production side, it shows SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data error. I am blank, how to deal with this error ?

Thanks,
Hardik Gadesha

Hi, it seems error with one of your json fileā€¦ please check maybe you missed in some place , or add more than needed ,

Hello @SwitsolAG

i committed changes which i done in my local, and those same changes i have clone in my production. I also compare this, but cloud not get same result as per my local.

My code working smoothly in local, but same code does not give output in production.

Is that necessary to call python method within same doctype. For ex. i wrote python methods in ABC.py, so is it compulsory to call this method from ABC.js file ?

Thanks,
Hardik Gadesha

Hello,

Here is my error log.

Thanks,
Hardik Gadesha