Whenever I attempt to fetch data from this API endpoint using promises, I encounter these type of issues.
export function* signUpWithEmail(authInfo: any) {
const { email, password } = authInfo.payload
try {
const response = yield authSignUpService
.register(email, password)
.then((res) => console.log(res))
yield put(signUpSuccess(response))
} catch (error) {
yield put(signUpFailure({ msg: error.message }))
}
}