Jump to content

Issue with pulling images from a Stashapp instance


Go to solution Solved by Luke,

Recommended Posts

Posted

I have Emby 4.8 deployed on Synology, and am running Stash in Docker on the same NAS. I'm using this plugin for metadata

https://github.com/DirtyRacer1337/Jellyfin.Plugin.Stash

But when Stash is configured to require authentication, images can't be pulled.

Taking from the two issues, the developer says the Emby/Jellyfin don't make it possible to use the API token to authenticate those calls. I didn't find any issues in GitHub, I was wondering if this is a known issue or not.

Posted

Hi, how does the authentication get added to the url?

Posted

Without any further comment from the plugin dev, I would guess it's just this ApiKey header on the requests

https://docs.stashapp.cc/networking/api/#authentication

Quote

Using the API Key is recommended instead of the above cookie method.

You just need to add the key you generated in stash ( for more info about the API Key check stash’s help section ) in a header for every request you make

curl -X POST -H "ApiKey: [blahblahblah]" -H "Content-Type: application/json" --data '{ "query": "mutation { metadataScan (input:{})}" }' localhost:9998/graphql

 

  • Solution
Posted

OK the issue is that the core server works with image urls. There is currently no way to provide custom http headers for the requests, so that would have to be added.

  • Agree 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...