What is the current behavior? And why it does suit you?
The _fetch_cookie raises only the error: Cannot fetch session cookie from {base_url}. But when the response has a status code different from 200, it's normal to receive an error because the _vinted_fr_session cookie is not returned. So a meaningful error will help all of us to debug.
Describe the solution you'd like
Add a more meaningful error like: Cannot fetch session cookie from {baseurl}, because of status code: {response.status_code} different from 200.
What is the current behavior? And why it does suit you?
The
_fetch_cookie
raises only the error:Cannot fetch session cookie from {base_url}
. But when the response has a status code different from200
, it's normal to receive an error because the_vinted_fr_session
cookie is not returned. So a meaningful error will help all of us to debug.Describe the solution you'd like
Add a more meaningful error like:
Cannot fetch session cookie from {baseurl}, because of status code: {response.status_code} different from 200.
Other information
Improvement detected on #22