Тема: vk api node js
Показать сообщение отдельно

  #19  
Старый 25.06.2022, 19:58
livingflore
Постоянный
Регистрация: 24.02.2017
Сообщений: 369
С нами: 4849679

Репутация: 118
По умолчанию

Цитата:
Сообщение от Kecer  

JavaScript:





Код:
(
node
:
4600
)
UnhandledPromiseRejectionWarning
:
APIError
:
Code №
100
-
One
of
the parameters specified was missing or invalid
:
Only conversation_message_id or message_id field should be specified
    at SequentialWorker
.
execute
(
C
:
\Users\
KIR
\Desktop\google sheets base\node_modules\vk
-
io\lib\index
.
js
:
1670
:
39
)
at
processTicksAndRejections
(
internal
/
process
/
task_queues
.
js
:
93
:
5
)
(
Use
`node --trace-warnings ...`
to show where the warning was created
)
(
node
:
4600
)
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
(
)
.
To terminate the node process on unhandled promise rejection
,
use the
CLI
flag
`--unhandled-rejections=strict`
(
see https
:
/
/
nodejs
.
org
/
api
/
cli
.
html#cli_unhandled_rejections_mode
)
.
(
rejection id
:
1
)
(
node
:
4600
)
[
DEP0018
]
DeprecationWarning
:
Unhandled promise rejections are deprecated
.
In the future
,
promise rejections that are not handled will terminate the Node
.
js process
with
a non
-
zero exit code
.

замени vk.updates.start() на vk.updates.start().catch(console.error), воспроизведи ошибку еще раз и скинь ее
 
Ответить с цитированием