api
Can someone help with this api fetching its not working
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)