Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seems like something happened with Ygg (again)... #10

Closed
afronob opened this issue Apr 22, 2020 · 4 comments
Closed

It seems like something happened with Ygg (again)... #10

afronob opened this issue Apr 22, 2020 · 4 comments

Comments

@afronob
Copy link

afronob commented Apr 22, 2020

Everything works fine since your last Cloudflare fix, but now :

That simply test :

const YGG = require('yggtorrent');

var client = new YGG();

client.set_credential('*****', '*******');

//list categories
client.get_categories(function(result) {
        console.log(result);
});
/var/www/yggtorrent-pizzae/node_modules/request-promise-core/lib/plumbing.js:130
            throw thrownException;
            ^

TypeError: Cannot read property 'request' of undefined
    at Request.callback [as _rp_callbackOrig] (/var/www/yggtorrent-pizzae/node_modules/yggtorrent/index.js:182:51)
    at Request.plumbing.callback (/var/www/yggtorrent-pizzae/node_modules/request-promise-core/lib/plumbing.js:76:39)
    at Request.RP$callback [as _callback] (/var/www/yggtorrent-pizzae/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at self.callback (/var/www/yggtorrent-pizzae/node_modules/request/request.js:185:22)
    at onCloudflareResponse (/var/www/yggtorrent-pizzae/node_modules/cloudscraper/index.js:229:12)
    at onRequestResponse (/var/www/yggtorrent-pizzae/node_modules/cloudscraper/index.js:205:5)
    at Request.<anonymous> (/var/www/yggtorrent-pizzae/node_modules/cloudscraper/index.js:149:7)
    at Object.onceWrapper (events.js:317:30)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/yggtorrent-pizzae/node_modules/request/request.js:1154:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/yggtorrent-pizzae/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
    at Function.module.exports.loopWhile (/var/www/yggtorrent-pizzae/node_modules/deasync/index.js:70:11)
    at Function.sleep (/var/www/yggtorrent-pizzae/node_modules/deasync/index.js:41:18)
@afronob
Copy link
Author

afronob commented May 1, 2020

Nobody has the same error as me ?

node v8.17.0
npm v6.13.4

@btpython
Copy link

btpython commented May 6, 2020

Nobody has the same error as me ?

node v8.17.0
npm v6.13.4

I have also this problem you're not alone @afronob

@fethca
Copy link

fethca commented May 8, 2020

The error comes from Cloudscraper which has a Parse Error coming from a regexp match.

The last fork of @bestplay9384 solved it during few days, check this thread : 1020, Access Denied (Custom Firewall Rules) #343

However now it seems to face Captcha error due to change of CloudFlare challenge

@gtorresani
Copy link
Collaborator

A new version is available, the cloudflare-cookie-scraper part has been outsourced in a docker container
The git repo has been moved
https://gitlab.onlineterroir.com/yggtorrent/yggtorrent
An API is also available in a docker container
https://gitlab.onlineterroir.com/yggtorrent/yggtorrent_api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants