api
Can someone help with this api fetching its not working
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1167123097699233884/image.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1167123098135445627/image.png)
5 Replies
the error you're getting is a 401 Unauthorized error. That means you will have to provide some kind of credentials or token in your request
how to fix that ?
that depends on the API you're calling. It's localhost, so I assume it's something you wrote yourself?
yes
what does the code running at /mentors look like?
if you can, just copy/paste the code into a codeblock (```js on its own line to start, then your code, then ``` on a new line at the bottom)