Handling "Bold BI Embedded: Embed Code Validation Failed" in various scenarios
Resolving “Bold BI Embedded: Embed Code Validation failed” Issue
When developing an embedding application in your platform to embed a dashboard, you may encounter an error message stating “Bold BI Embedded: Embed Code Validation Failed”. This article will guide you through the potential causes of this issue and how to mitigate them.
Potential Causes
-
Signature Mismatch: The signature generated with the unique nonce and embed secret using certain hashing techniques may mismatch when unprotected from the Bold BI server side, resulting in the error message.
-
Hashing Algorithm Mismatch: The hashing algorithm may mismatch with different languages like Python, Java, etc.
-
Embed Secret Mismatch: The EmbedSecret might be mismatched. You can confirm the Embed Secret key you have utilized in your embed application by downloading the embedConfig file.
-
Special Characters in Query String: Any special characters or encoded string in the query string when passed to the Bold BI authorization server may cause the issue.
Solutions
-
Check Signature Generation: Compare the hashing coding with our samples in the help documentation and ensure they are the same.
-
Confirm Embed Secret: Download the embedConfig file to confirm the Embed Secret key you have utilized in your embed application.Refer to the help documentation on downloading the embedConfig.json file
-
Check Query String: Get the query string that is passed to the Bold BI authorization server and ensure any special characters exist. If they do, ensure that the dashboard will be rendering fine with the same character from our end.
We have a set of samples for different languages available here.