Libation icon indicating copy to clipboard operation
Libation copied to clipboard

Error importing library

Open Blanket-Why opened this issue 2 years ago • 7 comments

Describe the bug Error importing library

To Reproduce Error happened after first library synch. Succesful log in then pressed import it scanned for a couple of seconds then error message appeared.

Platform

Windows 10

Log

Exception of type 'AudibleApi.ApiErrorException' was thrown.

at AudibleApi.ApiUnauthenticated.SendClientRequest(IHttpClientActions client, HttpRequestMessage request) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/ApiUnauthenticated [partial].cs:line 53 at AudibleApi.Api.AdHocAuthenticatedRequestAsync(String requestUri, HttpMethod method, IHttpClientActions client, HttpBody requestBody) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Api [partial].cs:line 56 at AudibleApi.Api.getLibraryResponseAsync(String parameters) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Api.Library.cs:line 285 at AudibleApi.Api.GetItemsCountAsync(LibraryOptions libraryOptions) in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Api.Library.cs:line 428 at AudibleApi.Api.GetLibraryItemsPagesAsync(LibraryOptions libraryOptions, Int32 numItemsPerRequest, SemaphoreSlim semaphore)+MoveNext() in /home/runner/work/AudibleApi/AudibleApi/AudibleApi/Api.Library.cs:line 375 at AudibleUtilities.ApiExtended.getItemsAsync(LibraryOptions libraryOptions, Boolean importEpisodes) in D:\a\Libation\Libation\Source\AudibleUtilities\ApiExtended.cs:line 102 at AudibleUtilities.ApiExtended.getItemsAsync(LibraryOptions libraryOptions, Boolean importEpisodes) in D:\a\Libation\Libation\Source\AudibleUtilities\ApiExtended.cs:line 102 at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates1 shouldRetryResultPredicates, Func5 onRetryAsync, Int32 permittedRetryCount, IEnumerable1 sleepDurationsEnumerable, Func4 sleepDurationProvider, Boolean continueOnCapturedContext) at Polly.AsyncPolicy.ExecuteAsync[TResult](Func3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext) at ApplicationServices.LibraryCommands.scanAccountAsync(ApiExtended apiExtended, Account account, LibraryOptions libraryOptions, LogArchiver archiver) in D:\a\Libation\Libation\Source\ApplicationServices\LibraryCommands.cs:line 281 at ApplicationServices.LibraryCommands.scanAccountsAsync(Func2 apiExtendedfunc, Account[] accounts, LibraryOptions libraryOptions) in D:\a\Libation\Libation\Source\ApplicationServices\LibraryCommands.cs:line 263 at ApplicationServices.LibraryCommands.scanAccountsAsync(Func2 apiExtendedfunc, Account[] accounts, LibraryOptions libraryOptions) in D:\a\Libation\Libation\Source\ApplicationServices\LibraryCommands.cs:line 265 at ApplicationServices.LibraryCommands.ImportAccountAsync(Func`2 apiExtendedfunc, Account[] accounts) in D:\a\Libation\Libation\Source\ApplicationServices\LibraryCommands.cs:line 132 at LibationAvalonia.ViewModels.MainVM.scanLibrariesAsync(Account[] accounts) in D:\a\Libation\Libation\Source\LibationAvalonia\ViewModels\MainVM.Import.cs:line 201

Blanket-Why avatar Sep 03 '23 12:09 Blanket-Why

@Blanket-Why please attach your entire log.zip file, not just an excerpt that you believe is sufficient.

Mbucari avatar Sep 03 '23 13:09 Mbucari

@Blanket-Why please attach your entire log.zip file, not just an excerpt that you believe is sufficient.

The copied text by OP is the same pop-up I get as well. Here is the Log File from my attempt.

Log202309.zip

mesquiteTX avatar Sep 03 '23 18:09 mesquiteTX

@mesquiteTX this is a network error. Libation is trying to connect to audible servers but the request is timing out

{\"http_error\":\"The request failed due to timeout.\"}

This should resolve itself in a day or two.

Mbucari avatar Sep 03 '23 20:09 Mbucari

@Mbucari Interesting, I’d attempted a download and decryption of another file in the same time frame but only got the error after the update from .2 to .3. Thanks for the response and I'll keep an eye on things. Is there any way to "force" it to keep trying, or is it just a "wait and see" type of situation?

mesquiteTX avatar Sep 03 '23 20:09 mesquiteTX

@Mbucari Interesting, I’d attempted a download and decryption of another file in the same time frame but only got the error after the update from .2 to .3. Thanks for the response and I'll keep an eye on things. Is there any way to "force" it to keep trying, or is it just a "wait and see" type of situation?

I'm 99% sure it has nothing to do with the different libation version, but if you want to run the experiment try downgrading to 11.0.2 and trying again.

Mbucari avatar Sep 03 '23 21:09 Mbucari

@Mbucari I must be brain dead, how would I go back a version? :/

mesquiteTX avatar Sep 04 '23 00:09 mesquiteTX

@mesquiteTX there's no in-app way to do it, but you can download any prior release from the release page and then extract it to you libation program files folder.

Mbucari avatar Sep 04 '23 02:09 Mbucari