236
Views
1
Comments
"Unexpected token < in JSON at position" Error after changing domain name
Question

Hi All,

Let me explain my situation.

I have customized the domain name for my simple android mobile app (Factory -> App -> Native Platforms -> Domain Name Change) in service center.

After changing the domain name I have generated the mobile app. 

My mobile contains two buttons to get server date time and client date time.

When I click the Get Client date time, it displays the client date time.

However, when I click Get Server Date Time I am getting the error "Unexpected token < in JSON at position"

I have attached the error screenshot.

Can you please check what I am missing?

2024-07-29 13-18-02
Vitalii Martynenko

Hi Arunkumar Balu,

Looks like your app tries to deserialize html code. Check if you're actually calling correct url and that there's a service there which can return you valid json response.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.