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

Problem with cookies. Status code 503 #39

Closed
CakesTwix opened this issue Jun 26, 2022 · 4 comments · Fixed by #40
Closed

Problem with cookies. Status code 503 #39

CakesTwix opened this issue Jun 26, 2022 · 4 comments · Fixed by #40
Labels
bug Something isn't working

Comments

@CakesTwix
Copy link

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 AlexandreSenpai added the bug Something isn't working label Jun 26, 2022
@AlexandreSenpai
Copy link
Owner

Thanks for your report @CakesTwix

@CakesTwix
Copy link
Author

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

@CakesTwix
Copy link
Author

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

@trestlesky
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants