Vaadin flow Components - Invalid JSON from server

We are facing strange issue in my UI. When we are requesting data from server we are getting error “Invalid JSON from sever: for(;:wink: … …”. It is happening for few components(Messages will be displayed in Grid) when the App is deployed in remote server. But it is not happening if i deploy App in local sever and access same component.

Attached image.

Could you please help me to invistigate what could be the problem?

Sounds like if you are using long polling?