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

CookieException #53

Open
darman96 opened this issue Oct 11, 2024 · 1 comment
Open

CookieException #53

darman96 opened this issue Oct 11, 2024 · 1 comment

Comments

@darman96
Copy link

I get a CookieException when trying to login;

System.Net.CookieException: The 'Domain'='.amazon.' part of the cookie is invalid.
at System.Net.Cookie.VerifySetDefaults(CookieVariant variant, Uri uri, Boolean isLocalDomain, String localDomain, Boolean setDefault, Boolean shouldThrow)
at System.Net.CookieContainer.Add(Cookie cookie)
at System.Net.CookieContainer.Add(CookieCollection cookies)
at AudibleApi.Authentication.Authenticate.initClientState() in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Authentication/Authenticate.cs:line 47
at AudibleApi.Authentication.Authenticate..ctor(Locale locale, String deviceName, IHttpClient client, ISystemDateTime systemDateTime) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Authentication/Authenticate.cs:line 34
at AudibleApi.Authentication.Authenticate..ctor(Locale locale, String deviceName) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Authentication/Authenticate.cs:line 21
at AudibleApi.Authentication.Authenticate.SubmitCredentialsAsync(Locale locale, String deviceName, String email, String password) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Authentication/Authenticate.cs:line 55

@darman96
Copy link
Author

darman96 commented Oct 11, 2024

Oh I got the locale wrong. I passed "de" instead of "germany".

But now I get a LoginFailedException:

AudibleApi.Authentication.LoginFailedException: No matching result page type
at AudibleApi.Authentication.LoginResultRunner.getResultsPageAsync(Authenticate authenticate, Dictionary2 inputs, HttpResponseMessage response) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Authentication/LoginResultRunner.cs:line 48 at AudibleApi.Authentication.LoginResultRunner.GetResultsPageAsync(Authenticate authenticate, Dictionary2 inputs, HttpMethod method, String url) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Authentication/LoginResultRunner.cs:line 26
at AudibleApi.Authentication.CredentialsPage.SubmitAsync(String email, String password) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Authentication/CredentialsPage.cs:line 22
at AudibleApi.Authentication.Authenticate.SubmitCredentialsAsync(String email, String password) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Authentication/Authenticate.cs:line 85
at AudibleApi.Authentication.Authenticate.SubmitCredentialsAsync(Locale locale, String deviceName, String email, String password) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Authentication/Authenticate.cs:line 56

It seems that the captcha page matching doesn't work.
The content of the request response is a captcha page but the CaptchaPageFactory _isMatchAsync implementation seems to be wrong.

Here's the content of the captcha page: https://pastebin.com/7iLguayE

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

1 participant