Skip to content

Network request to thebcms during nuxt prepare #1

Description

@keithrz

Hello,

Thanks for the library! I'm hoping it will give me what I need - I recently purchased a year of BCMS Pro. 🤞

But the current CloudFlare outage has provided a different issue: I cannot run pnpm install locally, or pnpm dev. I get the error below.

I'm wondering if there is a way to prevent this network request from happening? I think the bcms nuxt module is trying to generate types - could this be done in a more manual way, so that it didn't always have to happen when starting up the app or simply running pnpm install ? Or better yet, we don't have to rely on dynamically generated types that depend on the latest CMS model?

Full stack trace of the error:


 ERROR  Request failed with status code 500

    at settle (node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/adapters/http.js:793:11)
    at IncomingMessage.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1698:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/Axios.js:45:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Client.send (node_modules/.pnpm/@thebcms+client@1.5.7/node_modules/@thebcms/client/main.mjs:107:21)
    at async TypeGeneratorHandler.getFiles (node_modules/.pnpm/@thebcms+client@1.5.7/node_modules/@thebcms/client/handlers/type-generator.mjs:17:21)
    at async node_modules/.pnpm/@thebcms+nuxt@1.1.2_magicast@0.3.5/node_modules/@thebcms/nuxt/dist/module.mjs:153:21
    at async build (node_modules/.pnpm/nuxt@3.14.0_@parcel+watcher@2.5.1_@types+node@22.13.5_db0@0.3.2_mysql2@3.9.9__eslint@9._605c43b90df06cec8136a9a507309d86/node_modules/nuxt/dist/index.mjs:5943:3)
    at async Object.run (node_modules/.pnpm/nuxi@3.28.0/node_modules/nuxi/dist/chunks/prepare.mjs:50:5)
    at async runCommand$1 (node_modules/.pnpm/nuxi@3.28.0/node_modules/nuxi/dist/shared/nuxi.GLC40kEn.mjs:320:16)
    at async runCommand$1 (node_modules/.pnpm/nuxi@3.28.0/node_modules/nuxi/dist/shared/nuxi.GLC40kEn.mjs:311:11)
    at async runMain$1 (node_modules/.pnpm/nuxi@3.28.0/node_modules/nuxi/dist/shared/nuxi.GLC40kEn.mjs:449:7) 



 ERROR  Request failed with status code 500  

Thank you!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions