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

unable to download library #2

Closed
draxal opened this issue Feb 17, 2020 · 3 comments
Closed

unable to download library #2

draxal opened this issue Feb 17, 2020 · 3 comments

Comments

@draxal
Copy link

draxal commented Feb 17, 2020

I saw mention of your solution on r/audible in a thread, and love the idea but I appear to be having an issue downloading the library.

When I try to import my library, it appears to login just fine and gets the book count and then starts failing. I believe this would be the relevant parts of the log file. Any ideas?


2020-02-17 10:43:24.221 -07:00 [ERR] (at DtoImporterService.ImporterBase1.Run(, )) Import error: post-validation importing System.FormatException: Input string was not in a correct format. at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type) at AudibleApiDTOs.Series.get_Index() at DtoImporterService.BookImporter.updateBook(Item item, Book book) at DtoImporterService.BookImporter.upsertBooks(IEnumerable1 items)
at DtoImporterService.BookImporter.DoImport(IEnumerable1 items) at DtoImporterService.ImporterBase1.Run[TResult](Func2 func, T param) 2020-02-17 10:43:24.223 -07:00 [ERR] (at DtoImporterService.ImporterBase1.Run(, )) Import error: post-validation importing
System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at AudibleApiDTOs.Series.get_Index()
at DtoImporterService.BookImporter.updateBook(Item item, Book book)
at DtoImporterService.BookImporter.upsertBooks(IEnumerable1 items) at DtoImporterService.BookImporter.DoImport(IEnumerable1 items)
at DtoImporterService.ImporterBase1.Run[TResult](Func2 func, T param)
at DtoImporterService.ImporterBase1.Import(T param) at DtoImporterService.LibraryImporter.DoImport(IEnumerable1 items)
at DtoImporterService.ImporterBase1.Run[TResult](Func2 func, T param)
2020-02-17 10:43:24.225 -07:00 [ERR] (at ApplicationServices.LibraryCommands+d__0.MoveNext()) Error importing library
System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at AudibleApiDTOs.Series.get_Index()
at DtoImporterService.BookImporter.updateBook(Item item, Book book)
at DtoImporterService.BookImporter.upsertBooks(IEnumerable1 items) at DtoImporterService.BookImporter.DoImport(IEnumerable1 items)
at DtoImporterService.ImporterBase1.Run[TResult](Func2 func, T param)
at DtoImporterService.ImporterBase1.Import(T param) at DtoImporterService.LibraryImporter.DoImport(IEnumerable1 items)
at DtoImporterService.ImporterBase1.Run[TResult](Func2 func, T param)
at DtoImporterService.ImporterBase1.Import(T param) at ApplicationServices.LibraryCommands.<>c__DisplayClass0_0.<ImportLibraryAsync>b__1() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location where exception was thrown ---
at ApplicationServices.LibraryCommands.ImportLibraryAsync(ILoginCallback callback)

@rmcrackan
Copy link
Owner

I found where the problem is happening. I created an update to Libation which will hide the issue enough to continue. Please get the latest version, import your library, then open your log. Copy any lines like this and include them in this bug report:
Error parsing series index. Title: Whatever. ASIN: B123456789. Series index: more-stuff

@draxal
Copy link
Author

draxal commented Feb 17, 2020

Thanks for the quick reply and fix! Here are the 2 books that appear to be an issue:


2020-02-17 13:37:27.442 -07:00 [ERR] (at DtoImporterService.BookImporter.updateBook(AudibleApiDTOs.Item, DataLayer.Book)) Error parsing series index. Title: Besieged. ASIN: B06XNZJJH9. Series index: 0.3,4.7,8.6
System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at AudibleApiDTOs.Series.get_Index()
at DtoImporterService.BookImporter.updateBook(Item item, Book book)
2020-02-17 13:37:46.237 -07:00 [ERR] (at DtoImporterService.BookImporter.updateBook(AudibleApiDTOs.Item, DataLayer.Book)) Error parsing series index. Title: Two Tales of the Iron Druid Chronicles. ASIN: B00XUMA190. Series index: 0.6, 3.5
System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at AudibleApiDTOs.Series.get_Index()
at DtoImporterService.BookImporter.updateBook(Item item, Book book)

@rmcrackan
Copy link
Owner

Perfect. Fixed for real in latest update. Thanks for your help

rmcrackan pushed a commit that referenced this issue Aug 23, 2021
bug fix. race condition. can't check for book-exists-state before set…
@rmcrackan rmcrackan mentioned this issue Jun 23, 2022
rmcrackan pushed a commit that referenced this issue Dec 5, 2022
* Add dotnet test workflow

* main -> master

* Try a different workflow

* Add working-directory

* use windows runner

* use env var

* Fix build and test order

* Specify configuration

* Specify sln instead of working dir

* Specify that DOTNET_SLN is an env var

* Add publish workflow

* Add env.DOTNET_SLN to publish workflow

* Add publish job

* Combine publish into one job

* Just create an artifact

* Remove unused nuget lines

* Add Publish job back

Co-authored-by: Aaron Reisman <areisman@epic.com>
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

2 participants