AlexandreSenpai / Enma

Enma is a Python library designed to fetch and download manga and doujinshi data from many sources including Manganato and NHentai.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with cookies. Status code 503

CakesTwix opened this issue · comments

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

Thanks for your report @CakesTwix

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

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

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