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

Bad Gateway error #39

Open
darkhelmet2016 opened this issue Dec 31, 2020 · 20 comments
Open

Bad Gateway error #39

darkhelmet2016 opened this issue Dec 31, 2020 · 20 comments

Comments

@darkhelmet2016
Copy link

Traceback (most recent call last):
File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de
coder-py3.py", line 389, in
menu_test.start_()
File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
self.run_menu('Main')
File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
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_subprocess_result = download_.video_hls(hls_url, video_input, confi
g_['connection_n_'])
File "crunchy-xml-decoder\hls_.py", line 158, in video_hls
self.video = find_best_video(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
Copy link
Owner

alzamer2 commented Jan 3, 2021 via email

@alzamer2
Copy link
Owner

alzamer2 commented Jan 5, 2021

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
Copy link
Author

Yes, am logged in as a paid account.

@alzamer2
Copy link
Owner

alzamer2 commented Jan 5, 2021

did you try 1.4?

@taskforce22
Copy link

taskforce22 commented Jan 5, 2021

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
menu_test.start_()
File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
self.run_menu('Main')
File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
output_ = function_[0](*function_[1], **function_[2])
File "crunchy-xml-decoder\ultimate.py", line 90, in ultimate
html_page_ = 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
menu_test.start_()
File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
self.run_menu('Main')
File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
output_ = function_[0](*function_[1], **function_[2])
File "crunchy-xml-decoder\ultimate.py", line 90, in ultimate
html_page_ = 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
Copy link
Owner

alzamer2 commented Jan 5, 2021

My bad
Try now

@taskforce22
Copy link

taskforce22 commented Jan 5, 2021

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
Copy link
Owner

alzamer2 commented Jan 6, 2021

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

@taskforce22
Copy link

Still got the same result no browser_cookie3.

@alzamer2
Copy link
Owner

alzamer2 commented Jan 6, 2021

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

@taskforce22
Copy link

taskforce22 commented Jan 6, 2021

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
Copy link
Owner

alzamer2 commented Jan 6, 2021

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
Copy link

taskforce22 commented Jan 6, 2021

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, mkv_merge
File "crunchy-xml-decoder\ultimate.py", line 17, in
from hls_ import video_hls
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
Copy link
Owner

alzamer2 commented Jan 6, 2021

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

to "def init(self):"

@taskforce22
Copy link

taskforce22 commented Jan 6, 2021

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
Copy link

Virusf commented Feb 5, 2021

@darkhelmet2016
Copy link
Author

darkhelmet2016 commented Feb 19, 2021

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

@alzamer2
Copy link
Owner

alzamer2 commented Feb 19, 2021 via email

@darkhelmet2016
Copy link
Author

This same error is occurring more frequently.

Now Downloading - Armor Shop for Ladies & Gentlemen Episode 9 - I Am Armor
Exception in thread download_thread_: 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.media_sequence, 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

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