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

[It broke]: The input string 'Bonus' was not in a correct format. #70

Closed
ProfesseurIssou opened this issue Oct 20, 2023 · 6 comments
Closed
Labels
bug Something isn't working

Comments

@ProfesseurIssou
Copy link

ProfesseurIssou commented Oct 20, 2023

What is broken?

I added a manga on mangakatana, but after that, the webUI still stuck on Check your Settings > API-URI
I tried to re-deploy but it doesn't work

Log-output

Unhandled exception. System.FormatException: The input string 'Bonus' was not in a correct format.
   at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, ReadOnlySpan`1 value, TypeCode type)
   at System.Convert.ToSingle(String value, IFormatProvider provider)
   at Tranga.MangaConnectors.MangaKatana.<>c.<GetChapters>b__5_0(Chapter chapter) in /src/Tranga/MangaConnectors/MangaKatana.cs:line 157
   at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter`1.ComputeMap(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
   at System.Linq.OrderedEnumerable`1.SortedMap(Buffer`1 buffer)
   at System.Linq.OrderedEnumerable`1.ToArray()
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Tranga.MangaConnectors.MangaKatana.GetChapters(Manga manga, String language) in /src/Tranga/MangaConnectors/MangaKatana.cs:line 157
   at Tranga.MangaConnectors.MangaConnector.GetNewChapters(Manga manga, String language) in /src/Tranga/MangaConnectors/MangaConnector.cs:line 59
   at Tranga.Jobs.DownloadNewChapters.ExecuteReturnSubTasksInternal() in /src/Tranga/Jobs/DownloadNewChapters.cs:line 36
   at Tranga.Jobs.Job.ExecuteReturnSubTasks() in /src/Tranga/Jobs/Job.cs:line 87
   at Tranga.Jobs.JobBoss.CheckJobs() in /src/Tranga/Jobs/JobBoss.cs:line 256
   at Tranga.Tranga.<StartJobBoss>b__10_0() in /src/Tranga/Tranga.cs:line 74

Additional stuff

No response

@ProfesseurIssou ProfesseurIssou added the bug Something isn't working label Oct 20, 2023
@C9Glax
Copy link
Owner

C9Glax commented Oct 20, 2023

Yea that's a parsing error, Regex related.
Can you tell me which Manga you got this on? I see it's MangaKatana, but I would need the name, or even better a URL.

@C9Glax C9Glax added the question Further information is requested label Oct 20, 2023
@MinouCrew
Copy link

Same for me, on the latest tag on docker
Other manga work but this one https://mangakatana.com/manga/isekai-elf-no-dorei-chan.20015 has a chapter named "Chapter Bonus" instead of "Chapter {No}: {name}"

C9Glax added a commit that referenced this issue Oct 20, 2023
@C9Glax C9Glax removed the question Further information is requested label Oct 20, 2023
@C9Glax
Copy link
Owner

C9Glax commented Oct 20, 2023

I pushed a possible fix to cuttingedge if you could test it and report back or just close if it works, that would be great

@MinouCrew
Copy link

It's working for me, thank you

@ProfesseurIssou
Copy link
Author

Me too, thank you

@C9Glax
Copy link
Owner

C9Glax commented Oct 21, 2023

Cheers, closing

@C9Glax C9Glax closed this as completed Oct 21, 2023
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

No branches or pull requests

3 participants