alzamer2 / Crunchyroll-XML-Decoder-py3

GNU General Public License v3.0
17 stars 5 forks source link

Bad Gateway error #39

Open darkhelmet2016 opened 3 years ago

darkhelmet2016 commented 3 years ago

Traceback (most recent call last): File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de coder-py3.py", line 389, in menutest.start() File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_ self.run_menu('Main') File "crunchy-xml-decoder\pretyconsole.py", line 143, in runmenu output = function[0](*function[1], *function_[2]) File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de coder-py3.py", line 112, in queueu ultimate(line.strip(), '', '') File "crunchy-xml-decoder\ultimate.py", line 232, in ultimate download_subprocessresult = download.video_hls(hls_url, videoinput, confi g['connectionn']) File "crunchy-xml-decoder\hls_.py", line 158, in video_hls self.video = find_bestvideo(uri) File "crunchy-xml-decoder\hls.py", line 231, in find_best_video playlist = m3u8.load(uri) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\site-packag es\m3u8__init__.py", line 49, in load return _load_from_uri(uri, timeout, headers, custom_tags_parser) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\site-packag es\m3u8__init__.py", line 58, in _load_from_uri resource = urlopen(request, timeout=timeout) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 222, in urlopen return opener.open(url, data, timeout) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 531, in open response = meth(req, response) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 641, in http_response 'http', request, response, code, msg, hdrs) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 569, in error return self._call_chain(args) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 503, in _call_chain result = func(*args) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 502: Bad Gateway Press any key to continue . . .

alzamer2 commented 3 years ago

Can you link the anime you are trying to download?

On Thu, Dec 31, 2020, 8:12 PM darkhelmet2016 notifications@github.com wrote:

Traceback (most recent call last): File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de coder-py3.py", line 389, in menutest.start() File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_ self.run_menu('Main') File "crunchy-xml-decoder\pretyconsole.py", line 143, in runmenu output = function[0](*function[1], *function_[2]) File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de coder-py3.py", line 112, in queueu ultimate(line.strip(), '', '') File "crunchy-xml-decoder\ultimate.py", line 232, in ultimate download_subprocessresult = download.video_hls(hls_url, videoinput, confi g['connectionn']) File "crunchy-xml-decoder\hls_.py", line 158, in video_hls self.video = find_bestvideo(uri) File "crunchy-xml-decoder\hls.py", line 231, in find_bestvideo playlist = m3u8.load(uri) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\site-packag es\m3u8init*_.py", line 49, in load return

load_from_uri(uri, timeout, headers, custom_tags_parser) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\site-packag es\m3u8_init.py", line 58, in _load_from_uri resource = urlopen(request, timeout=timeout) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 222, in urlopen return opener.open(url, data, timeout) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 531, in open response = meth(req, response) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 641, in http_response 'http', request, response, code, msg, hdrs) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 569, in error return self._call_chain(args) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 503, in _call_chain result = func(args) File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ est.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 502: Bad Gateway Press any key to continue . . .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alzamer2/Crunchyroll-XML-Decoder-py3/issues/39, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCI5LVUSWLHUHR3QKVQQILSXS5HLANCNFSM4VPT6JHQ .

darkhelmet2016 commented 3 years ago

The entire series for Re:ZERO -Starting Life in Another World- Director’s Cut (English Dub) https://www.crunchyroll.com/rezero-starting-life-in-another-world-/episode-1-the-end-of-the-beginning-and-the-beginning-of-the-end-801101 to https://www.crunchyroll.com/rezero-starting-life-in-another-world-/episode-13-the-self-proclaimed-knight-and-the-greatest-knight-thats-all-this-story-is-about-801120

alzamer2 commented 3 years ago

just to make sure you have a premium account and you are logged into it, right?

if so try this branch its still under experiment but its working https://github.com/alzamer2/Crunchyroll-XML-Decoder-py3/tree/1.4

darkhelmet2016 commented 3 years ago

Yes, am logged in as a paid account.

alzamer2 commented 3 years ago

did you try 1.4?

taskforce22 commented 3 years ago

Those episodes won't download on 1.3 for me as well.

However, I also personally can't get 1.4 beta to download those (or even any other file that 1.3 can.) I get this with that fork on every link.

One of those episodes that doesn't work.

Booting up...

Please enter Crunchyroll video URL: https://www.crunchyroll.com/rezero-starting-life-in-another-world-/episode-1-the-end-of-the-beginning-and-the-beginning-of-the-end-801101 Traceback (most recent call last): File "F:\crunchyripper\crunchy-xml-decoder-py3.py", line 389, in menutest.start() File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_ self.run_menu('Main') File "crunchy-xml-decoder\pretyconsole.py", line 143, in runmenu output = function[0](*function[1], **function_[2]) File "crunchy-xml-decoder\ultimate.py", line 90, in ultimate htmlpage = gethtml(page_url) File "crunchy-xml-decoder\altfuncs.py", line 414, in gethtml subprocess.call(['node','-v'],stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) NameError: name 'subprocess' is not defined Press any key to continue . . .

A show that 1.3 works fine downloading.

Booting up...

Please enter Crunchyroll video URL: https://www.crunchyroll.com/food-wars-shokugeki-no-soma/episode-12-the-perfect-rocks-796436 Traceback (most recent call last): File "F:\Crunchyroll-XML-Decoder-py3-1.4\crunchy-xml-decoder-py3.py", line 389, in menutest.start() File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_ self.run_menu('Main') File "crunchy-xml-decoder\pretyconsole.py", line 143, in runmenu output = function[0](*function[1], **function_[2]) File "crunchy-xml-decoder\ultimate.py", line 90, in ultimate htmlpage = gethtml(page_url) File "crunchy-xml-decoder\altfuncs.py", line 414, in gethtml subprocess.call(['node','-v'],stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) NameError: name 'subprocess' is not defined Press any key to continue . . .

alzamer2 commented 3 years ago

My bad Try now

taskforce22 commented 3 years ago

Thanks for the help with this.

Now it won't even start up unfortunately.

Traceback (most recent call last): File "F:\Crunchyroll-XML-Decoder-py3-1.4\crunchy-xml-decoder-py3.py", line 27, in from login import login, getuserstatus File "crunchy-xml-decoder\login.py", line 31, in from altfuncs import config File "crunchy-xml-decoder\altfuncs.py", line 25, in import browser_cookie3 ModuleNotFoundError: No module named 'browser_cookie3' Press any key to continue . . .

alzamer2 commented 3 years ago

sorry my bad because its beta its not perfect Redownload and try now

taskforce22 commented 3 years ago

Still got the same result no browser_cookie3.

alzamer2 commented 3 years ago

Did you Redownload the code? Can you post your full screen so I can see it?

taskforce22 commented 3 years ago

Yeah, I completely deleted the old code and downloaded the new code just to be sure it wasn't being overwritten.

F:\Crunchyroll-XML-Decoder-py3-1.4>crunchy-xml-decoder-py3.bat Traceback (most recent call last): File "F:\Crunchyroll-XML-Decoder-py3-1.4\crunchy-xml-decoder-py3.py", line 27, in from login import login, getuserstatus File "crunchy-xml-decoder\login.py", line 31, in from altfuncs import config File "crunchy-xml-decoder\altfuncs.py", line 25, in import browser_cookie3 ModuleNotFoundError: No module named 'browser_cookie3' Press any key to continue . . .

alzamer2 commented 3 years ago

Hmm I will look into it For now dow you know how to manually download python package? If so download browser_cookies3 and try the code

taskforce22 commented 3 years ago

F:\Crunchyroll-XML-Decoder-py3-1.4>crunchy-xml-decoder-py3.bat Traceback (most recent call last): File "F:\Crunchyroll-XML-Decoder-py3-1.4\crunchy-xml-decoder-py3.py", line 29, in from ultimate import ultimate, mkvmerge File "crunchy-xml-decoder\ultimate.py", line 17, in from hls import videohls File "crunchy-xml-decoder\hls.py", line 24 ef init(self): ^ SyntaxError: invalid syntax Press any key to continue . . .

Sorry, I didn't realize browser_cookie3 was a python module.

alzamer2 commented 3 years ago

no idea how did this happen change "ef init(self):"

to "def init(self):"

taskforce22 commented 3 years ago

Well, I can't say if it is working or not, I had to reinstall python and now I'm getting this error on both the old and new versions.

Traceback (most recent call last): File "F:\Crunchyroll-XML-Decoder-py3-1.4\crunchy-xml-decoder-py3.py", line 40, in version = '%s.%s.%s' % get_lastest_version()[1] NameError: name 'get_lastest_version' is not defined Press any key to continue . . .

Any idea what might be causing it?

Virusf commented 3 years ago

Hello I had the same problem as the 1st message on https://www.crunchyroll.com/fr/for-whom-the-alchemist-exists-the-movie/for-whom-the-alchemist-exists-the-movie-for-whom-the-alchemist-exists-806647

Sans titre

darkhelmet2016 commented 3 years ago

Any update on this fix? Downloads are now starting to stall with no error codes.

alzamer2 commented 3 years ago

Will look into it I will fix beta so it can be fixed

On Fri, Feb 19, 2021, 2:00 PM darkhelmet2016 notifications@github.com wrote:

Any update on this fix?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alzamer2/Crunchyroll-XML-Decoder-py3/issues/39#issuecomment-782031644, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCI5LTSYWXE5BH3VQEI6ILS7ZHGJANCNFSM4VPT6JHQ .

darkhelmet2016 commented 3 years ago

This same error is occurring more frequently.

Now Downloading - Armor Shop for Ladies & Gentlemen Episode 9 - I Am Armor Exception in thread downloadthread: 151MB/317MB |%48 @ 5.11Mb/s Traceback (most recent call last): Part#167 |%100.0 File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 926, in _bootstrap_inner self.run() File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 870, in run self._target(*self._args, *self.kwargs) File "crunchy-xml-decoder\hls.py", line 95, in download_thread self.download_part(seg.absolute_uri, output, key, seg.mediasequence, self.tasks1) File "crunchy-xml-decoder\hls.py", line 59, in download_part response.raise_for_status() File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\models.py", line 940, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://a-vrv.akamaized.net/evs1/176936b195e94553c553edbfcd4abd19/assets/6a0593a8447250bb6a821265868334d2_3990825.mp4/seg-168-v1-a1.ts?t=exp=1614557640~acl=/evs1/176936b195e94553c553edbfcd4abd19/assets/6a0593a8447250bb6a821265868334d2_3990825.mp4/~hmac=7e82a616b6c356e5624acbac68050501b9ae8f3cd749d3b02630bb694d6d4d76