Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 in iframe content #1

Open
JustbobChico opened this issue Aug 17, 2020 · 2 comments
Open

404 in iframe content #1

JustbobChico opened this issue Aug 17, 2020 · 2 comments

Comments

@JustbobChico
Copy link

I am using the the same ClientId, ClientSecret, and EmbedId for the Node sample project which worked. Trying to determine what this 404 response is due to when in this project.

{"status":404,"statusReason":"Not Found","toe":"411L6PIEAB-JOVKK-RJVHE"}

Here is some output
POST data = { "sessionLength":1440, "authorizations":[{ "token":"311Q4", "permissions":["READ","FILTER","EXPORT"], "filters": [ ] }]}
Embed Token response status: 200 OK
Embed Token response content: {"authentication":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMzk5MTkyNDAwIiwibmJmIjoxNTk3NjkwNjk4LCJkb20iOiJ3b3JrdHJ1Y2tzb2x1dGlvbnMuZG9tby5jb20iLCJpc3MiOiJhcGlHYXRld2F5IiwiZW1iIjpbXSwiZXhwIjoxNTk3NzE5NTA4LCJpYXQiOjE1OTc2OTA3MDgsImp0aSI6IjU5ZmIzZTFhLWRiZTgtNDdlMC1hNGJiLTI3OWNkODBiNWJiZSJ9.Q72YUQczuwmWUvi4OqtGyK-xBUYgJK6XwQz11T6Twpw","forbiddenCardTokens":["311Q4"]}
embedToken: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMzk5MTkyNDAwIiwibmJmIjoxNTk3NjkwNjk4LCJkb20iOiJ3b3JrdHJ1Y2tzb2x1dGlvbnMuZG9tby5jb20iLCJpc3MiOiJhcGlHYXRld2F5IiwiZW1iIjpbXSwiZXhwIjoxNTk3NzE5NTA4LCJpYXQiOjE1OTc2OTA3MDgsImp0aSI6IjU5ZmIzZTFhLWRiZTgtNDdlMC1hNGJiLTI3OWNkODBiNWJiZSJ9.Q72YUQczuwmWUvi4OqtGyK-xBUYgJK6XwQz11T6Twpw
Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker: Information: Executed handler method OnGetAsync, returned result .
Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker: Information: Executing an implicit handler method - ModelState is Valid
Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker: Information: Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult.
Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker: Information: Executed page /Chart1 in 607.4444ms
Microsoft.AspNetCore.Routing.EndpointMiddleware: Information: Executed endpoint '/Chart1'
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request finished in 623.666ms 200 text/html; charset=utf-8

I will work on some debugging but wanted to see if there was something specific to look into.

Bob-

@JustbobChico
Copy link
Author

Looks like the const are for dashboards not cards - changed this
public static readonly string EmbedTokenUrl = ApiHost + "/v1/cards/embed/auth";
public static readonly string EmbedUrl = EmbedHost + "/cards/";
now I can get cards to display.

@goldytech
Copy link

I tried with the above settings, but now it returns an empty frame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants