Troubleshooting tips
This article helps you to troubleshoot the common problems that you might encounter when setting up or using an embedded ThoughtSpot instance. For additional help and guidance from ThoughtSpot Support, visit our Community site.
CORS and CSPπ
Refused to frame "<your-site-url>"β¦β error messageπ
Error: When I try to embed in my app, I get the error Refused to frame "<your-site-url>" because an ancestor violates the following Content Security Policy directive.
Cause: This error occurs when a host app domain is not added to the CSP and CORS allowlists.
How to fix: Add your host app domain as a CSP visual embed host and enable CORS on the Develop > Customizations > Security Settings page.
The CORS allowlist does not allow wildcard (*) for domain URLπ
Error: The CORS allowlist does not allow wildcard(*) expression for domain URLs.
Cause: This error occurs because ThoughtSpot does not support wildcard expression for domain URLs in the CORS allowlist.
How to fix: Specify the domain URL string in the supported format. For a complete list of allowed domain URL strings for CORS and CSP allowlists, see Security settings.
Browser supportπ
Cannot open my embedded app in Safariπ
Error: Unable to access the embedded app on Safari
Cause: This error may occur if third-party cookies are blocked.
How to fix: By default, Safari does not allow third-party cookies.
If the third-party cookies are blocked, the SDK triggers the NoCookieAccess event. Check the console log.
To resolve this issue:
-
Allow cookies on Safari to view the embedded app.
-
To ensure that embedding works on browsers that block third-party cookies, you can set the domain name of your ThoughtSpot instance to the same domain as your host application. If you want to customize the domain name, contact ThoughtSpot Support.
Authenticationπ
Account lockedπ
Error: My account is locked and I am unable to log in to the app with my SSO credentials.
Cause: Are you using token-based authentication? In a token-based authentication deployment, this error may occur if a userβs login token has expired. If a user makes multiple attempts to log in to ThoughtSpot using an invalid or expired token, they may get locked out of their accounts.
How to fix: Set the getAuthToken function in the SDK to return a fresh token for each re-login.
The login page shows up each time a user session expiresπ
Error: The embedded UI prompts me to re-login after a session timeout.
Cause: This error may occur if autoLogin is disabled in the SDK.
How to fix: If you are using the token-based authentication method, the SDK automatically logs in users after their user session has expired. Make sure the autoLogin attribute is set to true in the SDK.
The login prompt shows up for authenticated usersπ
Error: I have logged in to my application instance, but the login page shows up when I try to access the developer Playground.
Cause: This error may occur if session cookies are not enabled on your web browser.
How to fix: Check if third-party cookies are enabled on your web browser. Browsers such as Safari block third-party cookies by default. If you are accessing your application on Chrome in incognito mode, allow third-party cookies.
The login token request returns the 500 response codeπ
Error: ThoughtSpot returns the 500 error code for a session login token request.
Cause: This error may occur due to an invalid username or secret_key.
How to fix: Check if the username sent in the API request matches the name of the user in ThoughtSpot.
Check if trusted authentication is enabled on ThoughtSpot. Make sure the secrete_key being sent in your API request is valid.
For more information, see Trusted authentication.
SAML SSO authentication errorsπ
In most cases, SAML authentication errors occur due to incorrect IdP settings and invalid SAML authentication attributes. To resolve these issues:
-
Make sure SAML authentication support is configured without errors on your ThoughtSpot instance.
-
Check if the attributes, such as a userβs email address, display name, and username are mapped correctly in your IdP configuration. For example, if you are using Okta as your IdP, you must map the
userPrincipalNamein Okta toNameId. Similarly, you can map the email attribute value tomail, and the display name subject value todisplayName. -
Make sure your SAML redirect domain is added to the allowlist.
-
Check if the
authTypeproperty and SAML authentication attributes in the SDK are configured correctly. -
For SAML authentication, you must set the
authTypeasAuthType.SSO.If you are using Visual Embed SDK version 1.17.0 or later, you can set
authTypeasAuthType.SAMLRedirect. -
You can also set redirection parameters in the SDK to handle SAML redirect scenarios. For more information, see SAML redirection.
-
If embedding ThoughtSpot objects in an iFrame, configure your IdP to allow iframe embedding.
Custom actionsπ
URL custom actions donβt work on my appπ
Error: When I click the URL action, ThoughtSpot UI displays the URL action failed error message.
Cause: This error occurs when the target URL of the URL action is not allowed to establish connections due to CSP restrictions.
How to fix: Check the target domain name configured in the URL action. Make sure itβs reachable.
Check with your administrator to know if the target URL is added to the CSP connect-src domain allowlist. If you have administrator access, you can update the CSP allowlist on the Develop > Customizations > Security Settings page.