JimmyLaurent / torrent-search-api

Yet another node torrent scraper (supports iptorrents, torrentleech, torrent9, torrentz2, 1337x, thepiratebay, Yggtorrent, TorrentProject, Eztv, Yts, LimeTorrents)
MIT License
395 stars 99 forks source link

Cannot read property 'catch' for silentRejection #99

Closed Lewdninja closed 4 years ago

Lewdninja commented 4 years ago

TypeError: Cannot read property 'catch' of undefined at exports.silentRejection (C:\xxx\xxx\xxx\torrent-scraper\node_modules\torrent-search-api\lib\utils\helpers.js:7:36) at C:\xxx\xxx\xxx\torrent-scraper\node_modules\torrent-search-api\lib\ProviderManager.js:109:49 at Array.map (<anonymous>) at ProviderManager.search (C:\xxx\xxx\xxx\torrent-scraper\node_modules\torrent-search-api\lib\ProviderManager.js:109:8)

This started happening with the latest fix commit/version.

JimmyLaurent commented 4 years ago

Can disable yts and tell me if you still have the error please ?

Lewdninja commented 4 years ago

@JimmyLaurent disabling YTS did indeed fix it.

JimmyLaurent commented 4 years ago

I released a new version 2.1.1 with the fix.

If you use an http proxy, set env variables HTTP_PROXY and/or HTTPS_PROXY and you should be good.

Lewdninja commented 4 years ago

I would like to rotate the proxies so env variable is not the most ideal option. No worries though. Thanks for the fix.