Closed RicardoPinheiroo closed 8 months ago
Can you enable sensitive logs and share why the network request fails?
it gives me this error in vercel:
Error sending message: n [HttpError]: Network request for 'sendMessage' failed!
at /var/task/frontend/.next/server/chunks/860.js:24:3347
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async l.call (/var/task/frontend/.next/server/chunks/860.js:24:1164)
at async l.callApi (/var/task/frontend/.next/server/chunks/860.js:24:2052)
at async b (/var/task/frontend/.next/server/chunks/18.js:1:7647)
at async s (/var/task/frontend/.next/server/chunks/18.js:1:7335)
at async /var/task/frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:406
at async rg (/var/task/frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:6309)
at async rz (/var/task/frontend/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:24709)
at async Y (/var/task/frontend/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:16:25417) {
error: TypeError: Expected signal to be an instanceof AbortSignal
at new W (/var/task/frontend/.next/server/chunks/860.js:40:61610)
at /var/task/frontend/.next/server/chunks/860.js:40:63056
at new Promise (
Ah. Try this:
import { Bot } from "grammy/web";
It worked, thanks.
i have this code to send a message when a user creates a new request, its working fine on localhost. When i deploy the code to vercel it doesnt work.
ERROR: Error sending message: i [HttpError]: Network request for 'sendMessage' failed!