Snd-R / komf-userscript

Komf user script for Komga and Kavita
MIT License
61 stars 7 forks source link

Failed to retrieve search results: Request failed with status code 404 #6

Closed soultaco83 closed 1 year ago

soultaco83 commented 1 year ago

I have begun seeing the below errors Failed to retrieve search results: Request failed with status code 404 Failed to match series: Request failed with status code 404

My script should be setup properly with the @include set as the following: // @include http://192.168.108.208:8080/*

and the kofl-url set as following: const komfUrl = useStorage("komf-url", "http://192.168.108.195:8085");

I am unsure on what the issue is now though. It was working and seemingly stopped communicating. I am just unsure on what this communication is that is failing.

Snd-R commented 1 year ago

You shouldn't use useStorage() function to set komf url. Url is stored in browser localstorage and changing default value in useStorage() will not change it after it was set. Instead use new settings menu

Komga: image Kavita: image

If you really want to hardcode komf url then add this after // ==/UserScript== localStorage.setItem("komf-url", "http://192.168.108.195:8085");

Though it would still be possible to change url from settings menu but after page reload these changes will be overwritten with your hardcoded value

soultaco83 commented 1 year ago

Thank you. I reinstalled the script. Updated the url in the komf settings. This is now working.