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' }
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server