[NOWEB] - sendFile can no longer send from my website
Describe the bug
got the following error message "500 Server Error: Internal Server Error for url:
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
Portuguese
Descreva o bug
recebi a seguinte mensagem de erro "500 Server Error: Internal Server Error for url:
Versão
{ "versão": "2025.09.08", "motor": "NOWEB", "camada": "MAIS" }
Comportamento esperado
O arquivo é enviado ao usuário
Solicitações - Respostas
Solicitar
{
"sessão": "sessão_teste",
"chatId": "<chatId>@c.us",
"caption": "Mensagem de teste",
"arquivo": {
"mimetype": "aplicativo/pdf",
"nome do arquivo": "teste.pdf",
"url": "<url>/TEST.pdf"
}
}
Resposta
{
"statusCode": 500,
"carimbo de data/hora": "2025-10-07T05:29:52.616Z",
"exceção": {
"código": "CERT_NOT_YET_VALID",
"message": "o certificado ainda não é válido",
"nome": "Erro",
"configuração": {},
"stack": "Erro: o certificado ainda não é válido\n em AxiosError.from (/app/node_modules/axios/dist/node/axios.cjs:863:14)\n em RedirectableRequest.handleRequestError (/app/node_modules/axios/dist/node/axios.cjs:3187:25)\n em RedirectableRequest.emit (node:events:518:28)\n em eventHandlers.<computed> (/app/node_modules/follow-redirects/index.js:49:24)\n em ClientRequest.emit (node:events:518:28)\n em emitErrorEvent (node:_http_client:104:11)\n em TLSSocket.socketErrorListener (node:_http_client:518:5)\n em TLSSocket.emit (node:events:518:28)\n em emitErrorNT (node:internal/streams/destroy:170:8)\n em emitErrorCloseNT (node:internal/streams/destroy:129:3)\n em process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n em Axios.request (/app/node_modules/axios/dist/node/axios.cjs:4276:41)\n em process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n em Axios.request assíncrono (/app/node_modules/axios/dist/node/axios.cjs:4271:14)\n em Axios.request assíncrono (/app/node_modules/axios/dist/node/axios.cjs:4271:14)\n em assíncrono Axios.request (/app/node_modules/axios/dist/node/axios.cjs:4271:14)\n em assíncrono WhatsappSessionNoWebPlus.fileToMessage (/app/dist/plus/engines/noweb/session.noweb.plus.js:45:23)\n em assíncrono WhatsappSessionNoWebPlus.sendFile (/app/dist/plus/engines/noweb/session.noweb.plus.js:117:25)"
},
"solicitar": {
"caminho": "/api/sendFile",
"método": "POST",
"corpo": {
"sessão": "sessão_teste",
"chatId": "<chatId>@c.us",
"caption": "Teste",
"arquivo": {
"mimetype": "aplicativo/pdf",
"nome do arquivo": "teste.pdf",
"url": "<url>/TEST.pdf"
}
},
"consulta": {}
},
"versão": {
"versão": "2025.9.8",
"motor": "NOWEB",
"camada": "MAIS",
"navegador": nulo
}
}
Contexto adicional
Verifiquei a validade do certificado e executei o nslookup em caso de problema de DNS. ambos parecem normais
Portuguese
Title:
Oi! Tente adicionar
NODE_TLS_REJECT_UNAUTHORIZED=0
para suas variáveis de ambiente
Thank you for the reply, turns out my server's time was off by a several days. restarting systemd-timesyncd fixed the issue. Still thank you for the help. closing this issue.
Portuguese
Title:
Obrigado pela resposta, acontece que o tempo do meu servidor atrasou vários dias. reiniciar o systemd-timesyncd corrigiu o problema. Ainda assim obrigado pela ajuda. encerrando este problema.