#RequestError connect EACCES

19 messages · Page 1 of 1 (latest)

merry ermine
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

serene crag
#

This isnt a djs issue, its coming from whatever http-timer is

lunar wind
serene crag
#

Yeah me neither but its something your bot uses

pure basalt
#

npm why @szmarczak/http-timer to find out which of your packages uses that

lunar wind
#

I don't have/use any of the above modules. I have no idea why the error is suddenly there. My system is ubunto and the code is pure djs code

pure basalt
lunar wind
#

idk whats the problem

pure basalt
#

npm rm it then (and/or show your package.json)

lunar wind
lunar wind
# pure basalt npm rm it then (and/or show your package.json)
{
  "name": "zoe",
  "version": "1.0.0",
  "description": "",
  "main": "src/index.js",
  "scripts": {
    "start": "pm2 start bot.config.js --attach",
    "restart": "pm2 restart all",
    "stop": "pm2 delete all"
  },
  "author": "Place.2#1301",
  "license": "ISC",
  "dependencies": {
    "@discordjs/builders": "^1.5.0",
    "@discordjs/rest": "^1.6.0",
    "@iamtraction/google-translate": "^2.0.1",
    "axios": "^0.27.2",
    "body-parser": "^1.20.1",
    "canvas": "^2.11.0",
    "cookie-parser": "^1.4.6",
    "discord-api-types": "^0.37.21",
    "discord.js": "^14.8.0",
    "ejs": "^3.1.8",
    "express": "^4.18.2",
    "http": "^0.0.1-security",
    "https": "^1.0.0",
    "moment": "^2.29.1",
    "morgan": "^1.10.0",
    "ms": "^2.1.3",
    "mysql": "^2.18.1",
    "node-superfetch": "^0.2.3",
    "pm2": "^5.2.0",
    "showdown": "^2.1.0",
    "topgg-autoposter": "^2.0.1",
    "utf8": "^3.0.0"
  }
}

#
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm ERR! code EACCES
npm ERR! syscall connect
npm ERR! errno EACCES
npm ERR! FetchError: request to https://registry.npmjs.org/commander/-/commander-9.5.0.tgz failed, reason: connect EACCES A-RANDOM-IP:443
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
npm ERR!     at ClientRequest.emit (node:events:513:28)
npm ERR!     at TLSSocket.socketErrorListener (node:_http_client:502:9)
npm ERR!     at TLSSocket.emit (node:events:525:35)
npm ERR!     at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR!     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR!  FetchError: request to https://registry.npmjs.org/commander/-/commander-9.5.0.tgz failed, reason: connect EACCES 2606:4700::6810:1723:443
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
npm ERR!     at ClientRequest.emit (node:events:513:28)
npm ERR!     at TLSSocket.socketErrorListener (node:_http_client:502:9)
npm ERR!     at TLSSocket.emit (node:events:525:35)
npm ERR!     at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR!     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
npm ERR!   code: 'EACCES',
npm ERR!   errno: 'EACCES',
npm ERR!   syscall: 'connect',
npm ERR!   address: '2606:4700::6810:1723',
npm ERR!   port: 443,
npm ERR!   type: 'system'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

#

the error text makes no sense

pure basalt
#

Seems like a network/DNS issue. It can’t reach the address it resolved npmjs to

pure basalt
lunar wind
pure basalt