Issues with Pega Web Embed

Hi All,

I am facing this issue when load my web embed on a web (localhost), Any idea how to fix it?

Hi @danielg0987

  • This error is likely occurring because the response from the server is not valid JSON
  • Verify that the URL you are requesting is correct and that the server is set up to handle requests at that endpoint.
  • If your localhost environment is having issues with CORS, make sure the server is configured to allow requests from your development domain

@danielg0987 - Verify the redirect_uri in Oauth registration and in the URL before embed/auth.html if you found any version number remove that value and verify the issue.

c11n//embed/auth.html

replace

c11n/embed/auth.html

Thank you.

@Priyanka Boga - i was able to trace the issue and i found this error, do you have any idea how to fix it? I am using custom bearer authentication and mapping it to an operator with Guest role

@danielg0987 can you please check if your authenticated user has PegaRULES:PegaAPI role?

@danielg0987 - Can you verify whether the ConstellationAppStatic DSS url is set properly. Please follow below link. In admin studio we will have the proper url settings under system settings. Filter by constellation.

Thank you.

@danielg0987 Is your issue fixed? I also see the same error in the tracer for web embed. If your issue is fixed, then what did you do to fix it

@Kamil Janeczek I am also facing the same issue in pega webembed, I also have the role added in the authenticated user, but still i am getting the json error in the webpage.

Hi @PrasannaP4970,

Please check that the Access Group that uses the Web Embed has the PegaRules:User4 and PegaRules:PegaAPI Roles, that worked for me.

1 Like