AlexandreSenpai / Enma

Enma is a Python library designed to fetch and download manga and doujinshi data from many sources including Manganato and NHentai.
MIT License
80 stars 16 forks source link

Problem with cookies. Status code 503 #39

Closed CakesTwix closed 2 years ago

CakesTwix commented 2 years ago
File "/home/cakestwix/.local/lib/python3.10/site-packages/NHentai/sync/infra/adapters/request/http/implementations/sync.py", line 37, in handle_error
    raise Exception(f'An unexpected error occoured while making the request to the website! status code: {request.status}')
AttributeError: 'Response' object has no attribute 'status'
from NHentai import NHentai, CloudFlareSettings
nhentai_async = NHentai(request_settings=CloudFlareSettings(csrftoken="SECRET", cf_clearance="SECRET"))
print(nhentai_async.get_page(page=1))

image

AlexandreSenpai commented 2 years ago

Thanks for your report @CakesTwix

CakesTwix commented 2 years ago

@AlexandreSenpai, If you need more information or tests, feel free to contact me.

CakesTwix commented 2 years ago

I apologize, but the main problem is not solved. Error 503 is still there, even though I specified cookies

trestlesky commented 1 year ago

I can also confirm this is happening, going to post a different issue in reference.