kiranshila / Doplarr

An *arr request bot for Discord
MIT License
436 stars 31 forks source link

Issues when selecting quality profile #79

Open Stassh1 opened 2 years ago

Stassh1 commented 2 years ago

When selecting a movie, I get the quality profile prompt I select the type & seem to get stuck.

When running the logs I see the below. at first it was happening with random selections now it's every one.

2022-05-04T16:32:20.471Z 00e15f16d517 FATAL [doplarr.interaction-state-machine:56] - Error in creating option dropdown

java.lang.Thread.run  Thread.java: 831 java.util.concurrent.ThreadPoolExecutor$Worker.run ThreadPoolExecutor.java: 630 java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java: 1130 ...   clojure.core/binding-conveyor-fn/fn  core.clj: 2050 discljord.messaging.impl/step-agent/fn  impl.clj: 1191 discljord.messaging.impl/make-request!  impl.clj: 1146 discljord.messaging.impl/make-request!/make-request  impl.clj: 1141 ...   discljord.messaging.impl/fn  impl.clj: 943 clojure.lang.ExceptionInfo: Attempted to :edit-original-interaction-response with invalid parameters code: 50035 errors: {:components {"0" {:components {"0" {:options {"2" {:label {:-errors [{:code "BASE_TYPE_MAX_LENGTH", :message "Must be 100 or fewer in length."}]}}}}}}}} message: "Invalid Form Body"

kiranshila commented 2 years ago

Is one of your rootfolder paths longer than 100 characters?

This is a pretty easy fix, I can get to it today

Stassh1 commented 2 years ago

I'm using this on unraid with radarr, so far haven't found a path longer that 30 characters. I looked at deluge, radarr & plex paths. Am I looking at the right locations?

kiranshila commented 2 years ago

This is actually perplexing because I'm certainly limiting the option label to 100 characters. There was one spot I wasn't (fixed on develop) but that was the wrong function. Can you capture the log output with LOG_LEVEL set to :trace?

Also if you use the develop container, you'll get a better log output, those broken characters are color codes, which I think most people's logging framework don't work with.

Stassh1 commented 2 years ago

image No Option for trace

kiranshila commented 2 years ago

Raise an issue with whoever's unraid template it is, because trace is certainly an option haha

Stassh1 commented 2 years ago

got it