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

Clients page: Failed to fetch clients. undefined #24

Closed
elpablos opened this issue Mar 17, 2023 · 0 comments · Fixed by #25
Closed

Clients page: Failed to fetch clients. undefined #24

elpablos opened this issue Mar 17, 2023 · 0 comments · Fixed by #25

Comments

@elpablos
Copy link

Description
If I open in administration "Clients" overview page it fails on:
Failed to fetch clients. undefined

Problem
I have find out that on request works correctly:

Request URL:  /api/seacat_auth/client?p=1&i=20&f=
Request Method: GET
Status Code: 200

And the difference against localhost is that status code didn't return "200 OK" but only "200".
In a code, I have find out that there is the "statusText" check which is failing.

See HTTP response status codes for a list of codes and their associated status messages. Note that HTTP/2 does not support status messages.

see https://developer.mozilla.org/en-US/docs/Web/API/Response/statusText

Solution:

Drop response.statusText and use response.status as solution.

see axios/axios#1501

DoD

  • replace statusText check with status
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