I was playing with Canvas app in my Trailhead Play Ground (TP). I have implemented Canvas in TP successfully but very time I have received below error.

enter image description here

enter image description here

However, I have implemented same Canvas app in my Developer Org (DE) and getting proper output from Canvas.

Is there any known issue in TP regarding Canvas? Any idea how to fix it in TP?

PS: I was implementing Canvas app from below link: http://www.worldofsalesforce.com/2017/05/displaying-external-web-app-using-Salesforce-Canvas.html

  • 1
    Do you have the pUsername and Password for your play ground org](trailhead.salesforce.com/en/modules/…)? I've found references that suggest Canvas apps don't work with certain authentication methods. E.g. frontdoor.jsp. So it might be worth a direct login. – Daniel Ballinger May 13 '18 at 23:14
  • Thanks @DanielBallinger. As you know, generally Play ground orgs are getting authenticated by Trailhead Account. So play ground orgs don't need passwords to login. I will do password reset of one of my Play ground org so that I can login using username/password and test the Canvas. – Avijit May 14 '18 at 8:39
  • @DanielBallinger Tested with username/password and its working as expected. Many thanks. – Avijit May 15 '18 at 14:39

I've found other posts that suggest Canvas apps don't work when you are logged into an org using frontdoor.jsp.

The direct login to Trailhead playground orgs will has a similar process.

Instead, try and authenticate into the playground directly with the username and password. These can be recovered using the instructions in Get Your Trailhead Playground Username and Password

  • Tested with username/password and its working as expected. Many thanks. – Avijit May 16 '18 at 7:58
  • 1
    Also, I have mailed trailhead@salesforce.com (Trailhead Support) to get their advice on this. – Avijit May 16 '18 at 8:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.