Articles in this section
Category / Section

Rendering Dashboard in Nest Application using JavaScript Embedding

Published:

When embedding a dashboard in a Nest application, you may encounter an issue where the dashboard does not render even after obtaining the dashboard details from the Bold BI server. This issue is caused by the HTTP status code being returned as 201 instead of 200.

Solution

On the Nest platform, all action success status codes are 200, except for the Post action, which returns a 201 status code. To resolve this issue, set the HTTP code to 200 in your Nest project as shown below:

@HttpCode(200)
@Post('boldbi/getDeatils/:userEmail')
async getEmbedDetails(
@Body() body:{dashboardServerApiUrl:string, embedQuerString: string},
@Param('userEmail') userEmail:string,){
.....
}

By setting the HTTP code to 200, the dashboard should now render correctly in the embedded Nest application.

Additional References

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
SM
Written by Soundarya Mani Meharan
Updated:
Comments (0)
Please  to leave a comment
Access denied
Access denied