Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Uncaught Exception Node error when searching WWT #2267

Closed
mdegner opened this issue May 2, 2019 · 3 comments
Closed

Uncaught Exception Node error when searching WWT #2267

mdegner opened this issue May 2, 2019 · 3 comments

Comments

@mdegner
Copy link

mdegner commented May 2, 2019

I'm not sure where to begin here, but when I initiate a manual search for Aliens Resistance, I get this nasty error in the log.

Configuration Options
Mylar Version: master
-- git build 3f30fae.
Python Version : 2.7.16
Language : en_US.UTF-8

$ node -v
v10.15.2

2019-05-02 00:25:31 ERROR Uncaught exception: Traceback (most recent call last):File "/opt/mylar/mylar/logger.py", line 337, in new_runold_run(*args, **kwargs)File "/usr/lib/python2.7/threading.py", line 754, in runself.__target(*self.__args, **self.__kwargs)File "/opt/mylar/mylar/helpers.py", line 3144, in search_queuess_queue = mylar.search.searchforissue(item['issueid'])File "/opt/mylar/mylar/search.py", line 1855, in searchforissuefoundNZB, prov = search_init(ComicName, IssueNumber, str(IssueYear), SeriesYear, Publisher, IssueDate, StoreDate, actissueid, AlternateSearch, UseFuzzy, ComicVersion, SARC=SARC, IssueArcID=IssueArcID, mode=mode, rsscheck=rsscheck, ComicID=ComicID, filesafe=Comicname_filesafe, allow_packs=allow_packs, oneoff=oneoff, manual=manual, torrentid_32p=TorrentID_32p, digitaldate=DigitalDate, booktype=booktype)File "/opt/mylar/mylar/search.py", line 359, in search_initfindit = NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDate, StoreDate, searchprov, send_prov_count, IssDateFix, IssueID, UseFuzzy, newznab_host, ComicVersion=ComicVersion, SARC=SARC, IssueArcID=IssueArcID, RSS="no", ComicID=ComicID, issuetitle=issuetitle, unaltered_ComicName=unaltered_ComicName, allow_packs=allow_packs, oneoff=oneoff, cmloopit=cmloopit, manual=manual, torznab_host=torznab_host, torrentid_32p=torrentid_32p, digitaldate=digitaldate, booktype=booktype)File "/opt/mylar/mylar/search.py", line 669, in NZB_SEARCHbb = ww.wwt_connect()File "/opt/mylar/mylar/wwt.py", line 49, in wwt_connectcf_cookievalue, cf_user_agent = s.get_tokens(newurl, user_agent=mylar.CV_HEADERS['User-Agent'])File "/opt/mylar/lib/cfscrape/init.py", line 177, in get_tokensresp = scraper.get(url, **kwargs)File "/opt/mylar/lib/requests/sessions.py", line 477, in getreturn self.request('GET', url, **kwargs)File "/opt/mylar/lib/cfscrape/init.py", line 68, in requestresp = self.solve_cf_challenge(resp, *kwargs)File "/opt/mylar/lib/cfscrape/init.py", line 97, in solve_cf_challengeparams["jschl_answer"] = self.solve_challenge(body, domain)File "/opt/mylar/lib/cfscrape/init.py", line 134, in solve_challengeresult = subprocess.check_output(["node", "-e", js]).strip()File "/usr/lib/python2.7/subprocess.py", line 223, in check_outputraise CalledProcessError(retcode, cmd, output=output)CalledProcessError: Command '['node', '-e', u'console.log(require('vm').runInNewContext('var s,t,o,p,b,r,e,a,k,i,n,g,f, EkVZCpd={"pNCEfeOWJYye":+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(+[])+(!+[]+!![]+!![]+!![])+(+!![])+(!+[]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]))/+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![])+(!+[]+!![]+!![])+(!+[]+!![])+(!+[]+!![]+!![]+!![])+(!+[]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]))}; s += "==".slice(2 - (s.length & 3)); var bm, r = "", r1, r2, i = 0; for (; i < s.length;) { bm = o.indexOf(s.charAt(i++)) << 18 | o.indexOf(s.charAt(i++)) << 12 | (r1 = o.indexOf(s.charAt(i++))) << 6 | (r2 = o.indexOf(s.charAt(i++))); r += r1 === 64 ? g(bm >> 16 & 255) : r2 === 64 ? g(bm >> 16 & 255, bm >> 8 & 255) : g(bm >> 16 & 255, bm >> 8 & 255, bm & 255); } return r; }; ;EkVZCpd.pNCEfeOWJYye-=function(p){var p = eval(eval(e("ZG9jdW1l")+(undefined+"")[1]+(true+"")[0]+(+(+!+[]+[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+[!+[]+!+[]]+[+[]])+[])[+!+[]]+g(103)+(true+"")[3]+(true+"")[0]+"Element"+g(66)+(NaN+[Infinity])[10]+"Id("+g(107)+")."+e("aW5uZXJIVE1M"))); return +(p)}();EkVZCpd.pNCEfeOWJYye+=+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(+[])+(!+[]+!![]+!![]+!![])+(!+[]+!![])+(!+[]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]))/+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![])+(!+[]+!![])+(!+[]+!![])+(!+[]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(+[])+(+[]));EkVZCpd.pNCEfeOWJYye=+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(+[])+(!+[]+!![]+!![]))/(+(+((!+[]+!![]+[])+(!+[]+!![]+!![])+(+[])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(+!![])+(+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![])))+(function(p){return eval((true+"")[0]+".ch"+(false+"")[1]+(true+"")[1]+Function("return escape")()(("")"italics")[2]+"o"+(undefined+"")[2]+(true+"")[3]+"A"+(true+"")[0]+"("+p+")")}(+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])))));EkVZCpd.pNCEfeOWJYye-=+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(+[])+(!+[]+!![]+!![]))/+((!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![])+(+[])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![])+(!+[]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![]));a.value = (+EkVZCpd.pNCEfeOWJYye).toFixed(10); ; 121', Object.create(null), {timeout: 5000}));']' returned non-zero exit status 1
2019-05-02 00:25:22 INFO query set to : aliens resistance 3
2019-05-02 00:25:22 DEBUG Sending request to [WWT-SEARCH] for aliens resistance : 003
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens: Resistance issue: 3 (2019) using Public Torrents.
2019-05-02 00:25:22 DEBUG Initiating Search via : api
2019-05-02 00:25:22 INFO Could not find Issue 3 of Aliens: Resistance (2019) using DrunkenSlug [rss]
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens Resistance : 3 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens Resistance issue: 3 (2019) using DrunkenSlug (newznab) [RSS].
2019-05-02 00:25:22 DEBUG Using Newznab host of : DrunkenSlug
2019-05-02 00:25:22 INFO Alternate Search pattern detected...re-adjusting to : Aliens Resistance
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens: Resistance : 3 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens: Resistance issue: 3 (2019) using DrunkenSlug (newznab) [RSS].
2019-05-02 00:25:22 DEBUG Using Newznab host of : DrunkenSlug
2019-05-02 00:25:22 INFO Could not find Issue 3 of Aliens: Resistance (2019) using NZBPlanet [rss]
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens Resistance : 3 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens Resistance issue: 3 (2019) using NZBPlanet (newznab) [RSS].
2019-05-02 00:25:22 DEBUG Using Newznab host of : NZBPlanet
2019-05-02 00:25:22 INFO Alternate Search pattern detected...re-adjusting to : Aliens Resistance
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens: Resistance : 3 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens: Resistance issue: 3 (2019) using NZBPlanet (newznab) [RSS].
2019-05-02 00:25:22 DEBUG Using Newznab host of : NZBPlanet
2019-05-02 00:25:22 INFO Could not find Issue 3 of Aliens: Resistance (2019) using SimplyNZBs [rss]
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens Resistance : 3 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens Resistance issue: 3 (2019) using SimplyNZBs (newznab) [RSS].
2019-05-02 00:25:22 DEBUG Using Newznab host of : SimplyNZBs
2019-05-02 00:25:22 INFO Alternate Search pattern detected...re-adjusting to : Aliens Resistance
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens: Resistance : 3 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens: Resistance issue: 3 (2019) using SimplyNZBs (newznab) [RSS].
2019-05-02 00:25:22 DEBUG Using Newznab host of : SimplyNZBs
2019-05-02 00:25:22 INFO Could not find Issue 3 of Aliens: Resistance (2019) using NZBGeek [rss]
2019-05-02 00:25:22 DEBUG Thu, 28 Feb 2019 22:21:18 +0000 is before store date of 2019-04-10. Ignoring search result as this is not the right issue.
2019-05-02 00:25:22 DEBUG [CONV] pubdate: 2019-02-28 < storedate: 2019-04-09
2019-05-02 00:25:22 DEBUG usedate: 2019-04-10
2019-05-02 00:25:22 DEBUG date used is : 2019-04-10
2019-05-02 00:25:22 DEBUG store date used is : 2019-04-10
2019-05-02 00:25:22 DEBUG size given as: 31.2 MB
2019-05-02 00:25:22 DEBUG comsize_b: 32695000
2019-05-02 00:25:22 DEBUG sub: Aliens-Resistance.002.2019.digital.The.Magicians-Empire
2019-05-02 00:25:22 DEBUG checking search result: Aliens-Resistance.002.2019.digital.The.Magicians-Empire
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens Resistance : 3 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens Resistance issue: 3 (2019) using NZBGeek (newznab) [RSS].
2019-05-02 00:25:22 DEBUG Using Newznab host of : NZBGeek
2019-05-02 00:25:22 INFO Alternate Search pattern detected...re-adjusting to : Aliens Resistance
2019-05-02 00:25:22 DEBUG Thu, 28 Feb 2019 22:21:18 +0000 is before store date of 2019-04-10. Ignoring search result as this is not the right issue.
2019-05-02 00:25:22 DEBUG [CONV] pubdate: 2019-02-28 < storedate: 2019-04-09
2019-05-02 00:25:22 DEBUG usedate: 2019-04-10
2019-05-02 00:25:22 DEBUG date used is : 2019-04-10
2019-05-02 00:25:22 DEBUG store date used is : 2019-04-10
2019-05-02 00:25:22 DEBUG size given as: 31.2 MB
2019-05-02 00:25:22 DEBUG comsize_b: 32695000
2019-05-02 00:25:22 DEBUG sub: Aliens-Resistance.002.2019.digital.The.Magicians-Empire
2019-05-02 00:25:22 DEBUG checking search result: Aliens-Resistance.002.2019.digital.The.Magicians-Empire
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens: Resistance : 3 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens: Resistance issue: 3 (2019) using NZBGeek (newznab) [RSS].
2019-05-02 00:25:22 DEBUG Using Newznab host of : NZBGeek
2019-05-02 00:25:22 INFO Could not find Issue 3 of Aliens: Resistance (2019) using ddl [rss]
2019-05-02 00:25:22 DEBUG Sending request to [ddl] RSS for Aliens Resistance : 3
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens Resistance issue: 3 (2019) using ddl [RSS].
2019-05-02 00:25:22 INFO Alternate Search pattern detected...re-adjusting to : Aliens Resistance
2019-05-02 00:25:22 DEBUG Sending request to [ddl] RSS for Aliens: Resistance : 3
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens: Resistance issue: 3 (2019) using ddl [RSS].
2019-05-02 00:25:22 INFO Could not find Issue 3 of Aliens: Resistance (2019) using experimental [rss]
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens Resistance : 3 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens Resistance issue: 3 (2019) using experimental [RSS].
2019-05-02 00:25:22 INFO Alternate Search pattern detected...re-adjusting to : Aliens Resistance
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens: Resistance : 3 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens: Resistance issue: 3 (2019) using experimental [RSS].
2019-05-02 00:25:22 INFO Could not find Issue 3 of Aliens: Resistance (2019) using Public Torrents [rss]
2019-05-02 00:25:22 DEBUG no Alternate name given. Aborting search.
2019-05-02 00:25:22 DEBUG Sending request to [Public Torrents] RSS for Aliens Resistance : 3
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens Resistance issue: 3 (2019) using Public Torrents [RSS].
2019-05-02 00:25:22 INFO Alternate Search pattern detected...re-adjusting to : Aliens Resistance
2019-05-02 00:25:22 DEBUG no Alternate name given. Aborting search.
2019-05-02 00:25:22 DEBUG Sending request to [Public Torrents] RSS for Aliens: Resistance : 3
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens: Resistance issue: 3 (2019) using Public Torrents [RSS].
2019-05-02 00:25:22 INFO Could not find Issue 3 of Aliens: Resistance (2019) using DrunkenSlug [rss]
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens Resistance : 03 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens Resistance issue: 3 (2019) using DrunkenSlug (newznab) [RSS].
2019-05-02 00:25:22 DEBUG Using Newznab host of : DrunkenSlug
2019-05-02 00:25:22 INFO Alternate Search pattern detected...re-adjusting to : Aliens Resistance
2019-05-02 00:25:22 DEBUG Sending request to RSS for Aliens: Resistance : 03 (2019)
2019-05-02 00:25:22 DEBUG findloop: 0 / findcount: 1
2019-05-02 00:25:22 INFO Shhh be very quiet...I'm looking for Aliens: Resistance issue: 3 (2019) using DrunkenSlug (newznab) [RSS].
2019-05-02 00:25:22 DEBUG Using Newznab host of : DrunkenSlug
@geezer500
Copy link

I get the same error...
It only when I enable WWT, otherwise everything's fine.
Do you run Mylar in a docker container? (I do).

@psychogun
Copy link

Of what I have understood, WWT is using protection by Cloudflare. And they have changed something in their code; Jackett/Jackett#4982

@evilhero
Copy link
Owner

evilhero commented May 3, 2019

cfscrape has been updated with @davalanche's PR - so everything should be working at this point in time with WWT (we'll change to the newer updated library at some point, but it has extra dependencies that might cause issues for some users).

@evilhero evilhero closed this as completed Jan 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants