function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Laurent LemireLaurent Lemire 

connected app invalid response in canvasApp


I made a connected app using canvas that point to a .NET project, but when I try to open it in the previewer, in a visualforce page or at all I can see is : 

localhost sent an invalid response

There is nothing in the browser console and if I use the onCanvasAppLoad parameter in my <apex:canvasApp />, I have the confirmation that my app is loaded correctly.
Raj VakatiRaj Vakati
Can you check what is your Canvas App URL?  You need to update it from the hosting URL.    Refer this link for steps
Laurent LemireLaurent Lemire
I figured out what the problem is, since my developer edition is hosted on the cloud, localhost is not my machine, but the cloud itself. So it's impossible to use localhost to test connected apps.

I tried changing my canvas App Url to a version of my website that is on a domain and it works perfectly.