Bhupinder Chawla
Posts: 0
Joined: Thu Aug 28, 2014 1:21 am

JSON.parse: unexpected character at line 1 column 1 of the JSON data

Hi,

I have an error:

"JSON.parse: unexpected character at line 1 column 1 of the JSON data"

and I have shared the app. Please use Order Entry 2 and let me know how to overcome the error. The Order Entry service works in Test mode but does not work in the app. Let me know where I am making the mistake.

Thanks!

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

JSON.parse: unexpected character at line 1 column 1 of the JSON data

Hello Bhupinder,

Unfortunately debugging of custom applications is outside the scope of our support. But could you please provide us with some additional info of where do you have this error and what do you try to parse? Perhaps the screenshots will help us to better understand the issue.

Bhupinder Chawla
Posts: 0
Joined: Thu Aug 28, 2014 1:21 am

JSON.parse: unexpected character at line 1 column 1 of the JSON data

Evgene,

Thanks for the reply. Please see the file attached.

I am using a href="mailto:lucky.chawla@gmail.com" rel="nofollow"lucky.chawla@gmail.com/a as login and the app is PSE.

Thanks!

Best Regards
Bhupinder Chawla
Image Image Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

JSON.parse: unexpected character at line 1 column 1 of the JSON data

Hi Bhupinder,

It's problem could appear when JSON format is wrong.

May be some service response with incorrect JSON format?

Please give us your app public link and describe steps to reproduce this problem.

Regards.

Bhupinder Chawla
Posts: 0
Joined: Thu Aug 28, 2014 1:21 am

JSON.parse: unexpected character at line 1 column 1 of the JSON data

Hi Yurii,

Thanks for the response. I have shared the app to support. The public link is http://appery.io/app/mobile-frame?src...

It is a POST service. When I test the service, it is fine.

When I run with the public link given above, I get the error in the images which I attached to the previous image.

My question is am I doing the request mapping correctly? Do I have to form a JSON object? Will the mapping not form the object?

Look forward to you response.

Thanks!

Best Regards
Bhupinder Chawla

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

JSON.parse: unexpected character at line 1 column 1 of the JSON data

Hi Bhupinder,

Tried your app but but could not reproduce your issue. See details: http://prntscr.com/6oelxw/direct

Please specify steps to reproduce this issue in your app.

Thanks.

Return to “Issues”