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

can't load admin Dashboard. Invalid Response #14

Open
starcrest opened this issue Jun 8, 2020 · 0 comments · May be fixed by #23
Open

can't load admin Dashboard. Invalid Response #14

starcrest opened this issue Jun 8, 2020 · 0 comments · May be fixed by #23

Comments

@starcrest
Copy link

After successful login with admin account, the dashboard is a blank page with an Invalid Response error. Call to http://localhost:3000/api/dashboard/stats gives a 401 Unauthorized.

This is because the (local) server is not receiving any access token via req.headers['x-tv-access-token'].

The react client code should be sending the token from its tvClient.apiKeyOrAccessToken, but that's undefined. Looks like the updated API uses tvClient.accessToken instead -- at least, there's a value there that looks like a token -- but I haven't been able to monkey patch it to make it work.

@jcrosen jcrosen linked a pull request Jan 28, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant