강의

멘토링

커뮤니티

Inflearn Community Q&A

gomsonixx2336's profile image
gomsonixx2336

asked

Node and React series that you can learn by following - Basic lecture

Node React Basics Lecture #12 Token Generation with jsonwebtoken

로그인 기능 확인 중 postman sending request 무한로딩

Resolved

Written on

·

614

0

로그인 기능을 구현한 다음 확인을 위해 postman에서 email과 비밀번호를 send 하면 sending request가 무한로딩되는 문제가 발생합니다.

아래에 깃허브 주소를 남깁니다.

https://github.com/gomsoni/boiler-plate_mernstack

nodejsreact

Answer 1

1

한번 찾아보니 아래 부분에서

일단 success : fasle 부분 오타인것같습니다

success : false로 바꿔주시겠어요 ? 

app.post('/register', (req, res) => {
// 회원가입할 때 필요한 정보를 client에서 가져옴
const user = new User(req.body)
// 가져온 정보를 데이터베이스에 저장
user.save((err, userInfo) => {
if (err) return res.json({ success: fasle, err })
return res.status(200).json({
success: true
})
})
})
gomsonixx님의 프로필 이미지
gomsonixx
Questioner

그 부분을 고쳐봐도 똑같은 문제가 발생합니다ㅠ

gomsonixx2336's profile image
gomsonixx2336

asked

Ask a question