Я впервые пытаюсь создать собственное приложение, и я получаю эту странную ошибку, которую не могу понять. это мой код:
update_signals = () => {
url = this.state.url + "action=get_signals"
fetch(url).then((response) => {
/** handling the response */
object = response.text()
if (typeof object === "undefined"){}else{
setTimeout(object.
then((text) => {
/** handling the text */
this.get_signals_form_response(text)
})
.catch((error) => {
/** some problem with getting text from response */
alert("some error : " + error.message)
})
,10000)
}
})
/** this catch is for total reject */
.catch((error) => {
alert("total error : " + error.message)
})
}
Я нажимаю кнопку, чтобы увидеть эту работу, и после нескольких раз нажатия кнопки и после первой успешной работы несколько раз я получаю эту ошибку.
func.apply is not a function. In "func.apply(undefined,args)" func.apply is undefined
Вы можете увидеть изображение здесь:
Изображение ошибки
Даже когда я помещаю его между блоком try и catch Это не обрабатывается какошибка.