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

Exception in thread "main" java.lang.UnsupportedOperationException: JsonObject #1

Closed
fabian-schmitt opened this issue Jul 29, 2022 · 3 comments

Comments

@fabian-schmitt
Copy link

Hey, first of all this software is a great Idea, but i somehow have issues using it.

When i follow the instructions and run the container i get the following error, see console output:

[...]
packtpubscrapper-scrapper-1 | Starting loading Other Books You May Enjoy 17
packtpubscrapper-scrapper-1 | Starting loading Index 18
packtpubscrapper-scrapper-1 | Exception in thread "main" java.lang.UnsupportedOperationException: JsonObject
packtpubscrapper-scrapper-1 | at com.google.gson.JsonElement.getAsString(JsonElement.java:179)
packtpubscrapper-scrapper-1 | at Scrapper$loadBookPageContent$1.invokeSuspend(Scrapper.kt:115)
packtpubscrapper-scrapper-1 | at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
packtpubscrapper-scrapper-1 | at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
packtpubscrapper-scrapper-1 | at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279)
packtpubscrapper-scrapper-1 | at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
packtpubscrapper-scrapper-1 | at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
packtpubscrapper-scrapper-1 | at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
packtpubscrapper-scrapper-1 | at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
packtpubscrapper-scrapper-1 | at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
packtpubscrapper-scrapper-1 | at Scrapper.loadBookPageContent(Scrapper.kt:92)
packtpubscrapper-scrapper-1 | at Scrapper.loadContent(Scrapper.kt:48)
packtpubscrapper-scrapper-1 | at Scrapper.loadChapterSequential(Scrapper.kt:221)
packtpubscrapper-scrapper-1 | at Scrapper.access$loadChapterSequential(Scrapper.kt:24)
packtpubscrapper-scrapper-1 | at Scrapper$main$1$1$1.invokeSuspend(Scrapper.kt:200)
packtpubscrapper-scrapper-1 | at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
packtpubscrapper-scrapper-1 | at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
packtpubscrapper-scrapper-1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
packtpubscrapper-scrapper-1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
packtpubscrapper-scrapper-1 | at java.base/java.lang.Thread.run(Unknown Source)

I am using WSL2 to execute docker-compose, but this shouldn't matter as far as i think.
Also authentification works, as you can see when it says "Start loading (...)".

Can you might help me?
I would also reward your effort with some donation.

@fabian-schmitt
Copy link
Author

@Meghdut-Mandal ping

@Meghdut-Mandal
Copy link
Owner

Hey @fabian-schmitt will have a look at this. It's been a while since I used it.

@Meghdut-Mandal
Copy link
Owner

Working on this fix #2

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