-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Describe the bug
got the following error message "500 Server Error: Internal Server Error for url: /api/sendFile"
when trying to send a public url file from my site
Version
{
"version": "2025.09.08",
"engine": "NOWEB",
"tier": "PLUS"
}
Expected behavior
The file get sent to user
Requests - Responses
Request
{
"session": "test_session",
"chatId": "<chatId>@c.us",
"caption": "Test Message",
"file": {
"mimetype": "application/pdf",
"filename": "test.pdf",
"url": "<url>/TEST.pdf"
}
}
Response
{
"statusCode": 500,
"timestamp": "2025-10-07T05:29:52.616Z",
"exception": {
"code": "CERT_NOT_YET_VALID",
"message": "certificate is not yet valid",
"name": "Error",
"config": {},
"stack": "Error: certificate is not yet valid\n at AxiosError.from (/app/node_modules/axios/dist/node/axios.cjs:863:14)\n at RedirectableRequest.handleRequestError (/app/node_modules/axios/dist/node/axios.cjs:3187:25)\n at RedirectableRequest.emit (node:events:518:28)\n at eventHandlers.<computed> (/app/node_modules/follow-redirects/index.js:49:24)\n at ClientRequest.emit (node:events:518:28)\n at emitErrorEvent (node:_http_client:104:11)\n at TLSSocket.socketErrorListener (node:_http_client:518:5)\n at TLSSocket.emit (node:events:518:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (/app/node_modules/axios/dist/node/axios.cjs:4276:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Axios.request (/app/node_modules/axios/dist/node/axios.cjs:4271:14)\n at async Axios.request (/app/node_modules/axios/dist/node/axios.cjs:4271:14)\n at async Axios.request (/app/node_modules/axios/dist/node/axios.cjs:4271:14)\n at async WhatsappSessionNoWebPlus.fileToMessage (/app/dist/plus/engines/noweb/session.noweb.plus.js:45:23)\n at async WhatsappSessionNoWebPlus.sendFile (/app/dist/plus/engines/noweb/session.noweb.plus.js:117:25)"
},
"request": {
"path": "/api/sendFile",
"method": "POST",
"body": {
"session": "test_session",
"chatId": "<chatId>@c.us",
"caption": "Test",
"file": {
"mimetype": "application/pdf",
"filename": "test.pdf",
"url": "<url>/TEST.pdf"
}
},
"query": {}
},
"version": {
"version": "2025.9.8",
"engine": "NOWEB",
"tier": "PLUS",
"browser": null
}
}
Additional context
I've checked the certificate validity and ran nslookup in case of dns problem. both seems normal, of course I also accessed the file url from browser which ran just fine