Code Monkey home page Code Monkey logo

Comments (8)

kotcrab avatar kotcrab commented on June 10, 2024

There was a breaking change made in szurubooru, It's probably fixed in this fork.
I haven't touched this project in a long while but maybe I'll come back to it.

from szurubooru-auto-tagger.

kotcrab avatar kotcrab commented on June 10, 2024

I've copied the changes from that fork which should fix this. That said though I'll be rewriting this project soon which will likely be a breaking change.

from szurubooru-auto-tagger.

1832923 avatar 1832923 commented on June 10, 2024

Thank you for looking into it for me. I built the jar with the updates and I still get the same error when trying to use danbooru authed, but now unauthed its giving me the following:

Exception in thread "main" java.lang.ClassCastException: java.util.HashMap cannot be cast to com.kotcrab.szurubooru.tagger.RemapDto
at com.kotcrab.szurubooru.tagger.AutoTagger.remapTagCategory(AutoTagger.kt:557)
at com.kotcrab.szurubooru.tagger.AutoTagger.(AutoTagger.kt:73)
at com.kotcrab.szurubooru.tagger.MainKt.main(Main.kt:55)

I tired to make sense of it, but I just don't know anything about Kotlin. If this isn't a trivial problem I wouldn't worry about it since you are planning on rewriting anyway.

from szurubooru-auto-tagger.

kotcrab avatar kotcrab commented on June 10, 2024

You should remove remapCategories section from the config. It's not deserialized correctly (it's a bug in auto-tagger).

from szurubooru-auto-tagger.

1832923 avatar 1832923 commented on June 10, 2024

Well, that did help getting further into the program, but now I get the SSLHandshakeException upon every iteration going through the tags, even when I have anonymous set to true in the conifg. I even tried to manually add the danbooru cert into java but that didn't help either.

from szurubooru-auto-tagger.

kotcrab avatar kotcrab commented on June 10, 2024

I'd need to see the full stack trace but I just noticed in your first comment you're getting SSLHandshakeException in the Danbooru.isAuthorized this is weird. Even with wrong credentials you would get error 401. This suggests something is wrong with your Java installation / certificate store. Try using OpenJDK 11 from https://adoptopenjdk.net/ (I know readme calls for Java 8 - it's old...)

from szurubooru-auto-tagger.

1832923 avatar 1832923 commented on June 10, 2024

OpenJDK did it, everything seems to be working now. Thank you so much for the help!

from szurubooru-auto-tagger.

kotcrab avatar kotcrab commented on June 10, 2024

Great, I've updated the readme. I'm closing this, the issue with categories remap will be addressed in the rewrite.

from szurubooru-auto-tagger.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.