Embedding the dashboard

I have created a question and embedded it in a dashboard. I have enabled and shared the dashboard. I have generated the URL using java (JWT token). Below is the URL.

http://localhost:3000/embed/dashboard/eyJhbGciOiJIUzI1NiJ9.eyJyZXNvdXJjZSI6eyJkYXNoYm9hcmQiOjM1fSwicGFyYW1zIjoie30ifQ.Es47SL8QCS6zBebgQA56Df4xTV3QLjs3H0Tpls166ns#bordered&titled

On pasting it in browser, it displays "class java.lang.Character cannot be cast to class java.util.Map$Entry (java.lang.Character and java.util.Map$Entry are in module java.base of loader 'bootstrap')"

Below are the logs:

2021-09-02 12:09:34,893 DEBUG middleware.log :: GET /api/preview_embed/dashboard/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXNvdXJjZSI6eyJkYXNoYm9hcmQiOjM1fSwicGFyYW1zIjp7fSwiaWF0IjoxNjMwNTY0Nzc0LCJfZW1iZWRkaW5nX3BhcmFtcyI6e319.gtsvurFKMMgt9PRrI5qoyR8YTk495vCqV91N66DWQgA/dashcard/35/card/36 202 [ASYNC: completed] 192.0 ms (19 DB calls) App DB connections: 1/4 Jetty threads: 4/50 (0 idle, 0 queued) (60 total active threads) Queries in flight: 0 (0 queued); h2 DB 1 connections: 0/2 (0 threads blocked)
2021-09-02 12:11:53,693 DEBUG middleware.log :: GET /api/embed/dashboard/eyJhbGciOiJIUzI1NiJ9.eyJyZXNvdXJjZSI6eyJkYXNoYm9hcmQiOjM1fSwicGFyYW1zIjoie30ifQ.Es47SL8QCS6zBebgQA56Df4xTV3QLjs3H0Tpls166ns 400 9.9 ms (6 DB calls)
"class java.lang.Character cannot be cast to class java.util.Map$Entry (java.lang.Character and java.util.Map$Entry are in module java.base of loader 'bootstrap')"

2021-09-02 12:11:53,720 DEBUG middleware.log :: GET /api/session/properties 200 13.1 ms (2 DB calls) App DB connections: 0/4 Jetty threads: 8/50 (0 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued)

Kindly help me embed the dashboard.

Regards

Navin Kumar

Hi @navin_162
You are sending params as a string instead of an object.
Change this "params": "{}" to this "params": {}.
Use jwt.io to help you understand the token.

Thanks @flamber. My issue is resolved.