codigoencasa / builderbot

🤖 Crear Chatbot WhatsApp en minutos. Únete a este proyecto OpenSource

Home Page:https://www.builderbot.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

WichyAlonzo opened this issue · comments

¿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

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.

Es un error del proveedor no de la libreria.