Problem on my front end login.

Hi guys. I have problems on my front end when i try login on my application. I put user and password but my page is not redirect. Can you help me ?
37 Replies
Percy
Percy2y ago
Project ID: a297026f-2372-413d-8aa5-0af4cc4fe8bb
Thiago Lordello
Thiago LordelloOP2y ago
a297026f-2372-413d-8aa5-0af4cc4fe8bb
Brody
Brody2y ago
what tech stack is your frontend
Thiago Lordello
Thiago LordelloOP2y ago
My front end is app react
Brody
Brody2y ago
create react app?
Thiago Lordello
Thiago LordelloOP2y ago
No is my app Dellop for me devellop
Brody
Brody2y ago
did your app use create react app
Thiago Lordello
Thiago LordelloOP2y ago
Yes
Brody
Brody2y ago
then why did you just say no lol
Thiago Lordello
Thiago LordelloOP2y ago
I had understood that you had asked if I was using a template application that the railway website provides. I got it wrong. But my application used the command 'create react app' in creation yes. I'm Brazilian and some things I don't understand well. Sorry for the misunderstanding.
Brody
Brody2y ago
send your repo please
Thiago Lordello
Thiago LordelloOP2y ago
Okay one moment
Thiago Lordello
Thiago LordelloOP2y ago
GitHub
GitHub - thiagolordello/todolist_frontend
Contribute to thiagolordello/todolist_frontend development by creating an account on GitHub.
Brody
Brody2y ago
okay and do you get any errors when you would expect to be redirected
Thiago Lordello
Thiago LordelloOP2y ago
The only thing I could see was that when I press the login button, the browser's inspection shows the status 200 confirming that the request was successful. When it is wrong, the correct error message comes from my back end. But the bad thing is that it doesn't redirect to the page that has to redirect.
Brody
Brody2y ago
show me the error from the backend
Thiago Lordello
Thiago LordelloOP2y ago
The back end not have error. The error mentioned is when i test inputing password wrong
Brody
Brody2y ago
show me the error
Thiago Lordello
Thiago LordelloOP2y ago
okay
Thiago Lordello
Thiago LordelloOP2y ago
Brody
Brody2y ago
show me the path that the request was made to
Thiago Lordello
Thiago LordelloOP2y ago
okay I can't see the route in the console anymore. I don't know why it appeared before.
Thiago Lordello
Thiago LordelloOP2y ago
Brody
Brody2y ago
okay so you want that login request to redirect you?
Thiago Lordello
Thiago LordelloOP2y ago
Yes in my code i redirect from route /tasks /tasks/id
Brody
Brody2y ago
what does that have to do with the login endpoint, if you want the login endpoint to redirect you, then you need to send a redirect from the login endpoint
Thiago Lordello
Thiago LordelloOP2y ago
But my code already does that.
Brody
Brody2y ago
if it did, then you would be redirected so it obviously doesn't, or is not doing it correctly
Thiago Lordello
Thiago LordelloOP2y ago
I thought that some configuration on the platform could be preventing it.
Brody
Brody2y ago
no, this would be a code issue
Thiago Lordello
Thiago LordelloOP2y ago
Okay Brody. Will debug my code locally for identify the problem.
Brody
Brody2y ago
you jsut aren't sending a redirect response from the /login endpoint
Thiago Lordello
Thiago LordelloOP2y ago
Oh my god, Thank you. I imagine make this in my file Routs in dir router
Brody
Brody2y ago
you got it solved?
Thiago Lordello
Thiago LordelloOP2y ago
Not yet
Brody
Brody2y ago
youll get it its just some simple code issue
Thiago Lordello
Thiago LordelloOP2y ago
Okay Brody. Thanks
Want results from more Discord servers?
Add your server