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

Unable to fetch data from the API, from the method shown in the video #105

Open
asif-eth opened this issue Apr 2, 2023 · 1 comment
Open

Comments

@asif-eth
Copy link

asif-eth commented Apr 2, 2023

i've been spending hours and hours, and i don't know why but using axios it renders the data but when i use RTK Query as shown in the video, it shows me error 401.

@AnandDubey1711
Copy link

To make sure that the api is running u need to add middleware as well with the rtk query than only the API would get called and would be rendered inside the components

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