Ashgreninja55555
Ashgreninja55555
CDCloudflare Developers
Created by Ashgreninja55555 on 10/9/2024 in #workers-help
Failing to deploy backend (Next.js, Graphql, Prisma ORM) using Cloudfare worker [urgent]
I am trying to deploy the backend of my application using cloudfare worker, but I'm facing some issues while deploying. There were many issues before, but I managed to fix most of them, now the ones left are difficult to understand. Can anyone help me with this?
9 replies
CDCloudflare Developers
Created by Ashgreninja55555 on 10/5/2024 in #workers-help
Authentication/login issue using CLI
I'm trying to login through cli using
npx wrangler login
npx wrangler login
. It opens a link in browser and asks for permission on the cloudfare page, then it opens a localhost page which doesn't load and says localhost refused to connect. CLI displays the error: Error: ENOENT: no such file or directory, open 'C:\Users\hp\AppData\Roaming\xdg.config.wrangler\config\default.toml' at writeFileSync (node:fs:2352:20) at writeAuthConfigFile (D:\Atomic\newboard-server\newboard-db\node_modules\wrangler\wrangler-dist\cli.js:159075:37) at Server.<anonymous> (D:\Atomic\newboard-server\newboard-db\node_modules\wrangler\wrangler-dist\cli.js:159169:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'C:\Users\hp\AppData\Roaming\xdg.config\.wrangler\config\default.toml' } I then manually created default.toml in the mentioned path. I tried to login after this, then the issue was: Error: EBADF: bad file descriptor, write at writeFileSync (node:fs:2352:20) at writeAuthConfigFile (C:\Users\hp\AppData\Roaming\npm\node_modules\wrangler\wrangler-dist\cli.js:159075:37) at Server.<anonymous> (C:\Users\hp\AppData\Roaming\npm\node_modules\wrangler\wrangler-dist\cli.js:159169:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { errno: -4083, code: 'EBADF', syscall: 'write' }
1 replies