Я новичок в Meteor, я клонировал репозиторий из Heroku на своем локальном компьютере, а затем заменил 4 папки (cleint server imports public
) моим существующим проектом. Затем я запускаю meteor npm install
, затем npm install
, а затем npm start
. Проект работает без сбоев, я попытался Зарегистрировать пользователя, И это успешно, но при входе в систему, Это показывает ошибку как ->
(node:11590) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded.
И
(node:14263) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 8)
Я не имею ни малейшего представления откуда взялась эта ошибка и даже перепробовала все ссылки на ту же проблему, но все равно ничего не получалось.
Мой код входа в систему ->
Meteor.call('affiliateLogin',values, (err,res)=>{
if(err){
console.log(' in catch and err -------- ')
console.log(err);
}
else{
console.log(' in response - res.data --- ')
console.log(res);
this.props.history.push("/dashboard");
}
});
И мой метод affiliateLogin
->
affiliateLogin(values) {
console.log(' these are the values--- ', values) // i am getting the values here.
return axios({
method: 'post',
url: `${baseURL}/rest-api/affiliateAuthenticate.php`,
data: `userid=${values.email}&password=${values.password}&api_secret=secret`,
headers: {
'content-type': 'application/x-www-form-urlencoded',
}
})
.then(res => { return res.data })
.catch(err => { return err })
}
Моя версия метеора ->
meteor --version
Meteor 1.8.1
И версия узла ->
node --version
v10.15.3