"Unexpected token < in JSON at position" Error after changing domain name

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?

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.