doowb / npm-api

Node.js library for getting info from NPM’s API
https://github.com/doowb/npm-api
MIT License
106 stars 18 forks source link

Service Unavailable #26

Open andresgarcia0313 opened 1 year ago

andresgarcia0313 commented 1 year ago

Subject: Report on npm package search

Description: We have noticed some intermittent "Service Unavailable" errors while searching for npm packages. We wanted to inform you about this so you can investigate and address the issue. We greatly appreciate your efforts in providing this npm package for free, and we are confident that you'll be able to resolve it with your skill and kindness. Thank you for your valuable work!

Code

const NpmApi = require('npm-api'); const npm = new NpmApi(); const axios = require('axios');

/**

/**

/**

/**

// Initiating the package search with the keyword 'lodash'. searchDelayedPackages('lodash');

PS C:\Archivos\Desarrollo\Javascript\NodePackages> npm start

nodepackages@1.0.0 start node program.js

Error al buscar y listar paquetes: Error: Service Unavailable at View.query (C:\Archivos\Desarrollo\Javascript\NodePackages\node_modules\npm-api\lib\view.js:47:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async buscarPaquetesPorTexto (C:\Archivos\Desarrollo\Javascript\NodePackages\program.js:9:21) at async buscarPaquetesConRetraso (C:\Archivos\Desarrollo\Javascript\NodePackages\program.js:37:7) Error al buscar y listar paquetes: Error: Service Unavailable at View.query (C:\Archivos\Desarrollo\Javascript\NodePackages\node_modules\npm-api\lib\view.js:47:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async buscarPaquetesPorTexto (C:\Archivos\Desarrollo\Javascript\NodePackages\program.js:9:21) at async buscarPaquetesConRetraso (C:\Archivos\Desarrollo\Javascript\NodePackages\program.js:37:7) Error al buscar y listar paquetes: Error: Service Unavailable at View.query (C:\Archivos\Desarrollo\Javascript\NodePackages\node_modules\npm-api\lib\view.js:47:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async buscarPaquetesPorTexto (C:\Archivos\Desarrollo\Javascript\NodePackages\program.js:9:21) at async buscarPaquetesConRetraso (C:\Archivos\Desarrollo\Javascript\NodePackages\program.js:37:7) Error al buscar y listar paquetes: Error: Service Unavailable at View.query (C:\Archivos\Desarrollo\Javascript\NodePackages\node_modules\npm-api\lib\view.js:47:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async buscarPaquetesPorTexto (C:\Archivos\Desarrollo\Javascript\NodePackages\program.js:9:21) at async buscarPaquetesConRetraso (C:\Archivos\Desarrollo\Javascript\NodePackages\program.js:37:7) PS C:\Archivos\Desarrollo\Javascript\NodePackages>

andresgarcia0313 commented 1 year ago

Solution: https://github.com/andresgarcia0313/NodePackages

andresgarcia0313 commented 1 year ago

I closed it by mistake