This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
1
Having a path issue with axios
Post Flair (click to view more posts with a particular flair)
Post Body
I wrote :
await axios.post(`http://localhost:3000/src/api/auth`, user)
and got the error in the console:
POST http://localhost:3000/api/auth 404 (Not Found)
and:
Uncaught (in promise) AxiosError {message: 'Request failed with status code 404', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}
The path to auth is from src in the react folder src/api/auth as in the post above.
Can someone tell me what im doing wrong?
Author
Account Strength
100%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
22,481
Link Karma
16,478
Comment Karma
5,889
Profile updated: 6 days ago
Posts updated: 18 hours ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/react/comme...