Page 1 of 1

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

Posted: Mon Mar 30, 2015 4:10 am
by Bhupinder Chawla

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!


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

Posted: Mon Mar 30, 2015 2:36 pm
by Evgene Karachevtsev

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.


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

Posted: Mon Mar 30, 2015 4:42 pm
by Bhupinder Chawla

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


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

Posted: Tue Mar 31, 2015 2:55 am
by Yurii Orishchuk

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.


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

Posted: Tue Mar 31, 2015 4:21 am
by Bhupinder Chawla

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


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

Posted: Thu Apr 02, 2015 12:57 am
by Yurii Orishchuk

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.