codigoencasa / bot-whatsapp

🤖 Crear Chatbot WhatsApp en minutos. Únete a este proyecto OpenSource (Typescript Version Pronto)
https://bot-whatsapp.netlify.app
MIT License
2.18k stars 766 forks source link

[🐛] const version = indexHtml.match(/manifest-([\d\\.]+)\.json/)[1]; #1033

Closed WichyAlonzo closed 2 months ago

WichyAlonzo commented 3 months ago

¿Que versión estas usando?

v2

¿Sobre que afecta?

Flujo de palabras (Flow)

Describe tu problema

async persist(indexHtml) { // extract version from index (e.g. manifest-2.2206.9.json -> 2.2206.9) const version = indexHtml.match(/manifest-([\d\.]+).json/)[1]; if (!version) return;

    const filePath = path.join(this.path, `${version}.html`);
    fs.mkdirSync(this.path, { recursive: true });
    fs.writeFileSync(filePath, indexHtml);
}

help me

image

Reproducir error

No response

Información Adicional

No response

rodrimarchese commented 2 months ago

Ese error estoy casi seguro que es de la libreria de whatsapp web. En un proyecto aparte que la estoy utilizando, me pasa el mismo error.

jorgechavarriaga commented 2 months ago

Es un error del proveedor no de la libreria.