Alan1234 0 Posted June 2, 2020 Share Posted June 2, 2020 Hi, I receive the Internal Error 500 when I try to change the password to a user using a generate api key (Advance -> Api Key). Instead when I use the Api key that swagger use I don't have problems. I can use the swagger's api key, but it changes every 2 days. Anyone has a solution? Thanks Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted June 2, 2020 Share Posted June 2, 2020 use the /user/authenticatebyname end point returns an access token - use this instead of the apikey generated via the UI Swagger is only for testing not production - hence why the key changes Link to comment Share on other sites More sharing options...
Alan1234 0 Posted June 2, 2020 Author Share Posted June 2, 2020 (edited) When I try to generate it, I receive the error "Value cannot be null. (Parameter 'appName')" What is wrong? Edited June 2, 2020 by Alan1234 Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted June 2, 2020 Share Posted June 2, 2020 did you fill in the headers and body thats needed along with admin username and password Link to comment Share on other sites More sharing options...
ebr 14904 Posted June 2, 2020 Share Posted June 2, 2020 See the section on Authentication (as well as the other general API usage): https://github.com/MediaBrowser/Emby/wiki Link to comment Share on other sites More sharing options...
Alan1234 0 Posted June 2, 2020 Author Share Posted June 2, 2020 (edited) did you fill in the headers and body thats needed along with admin username and password Yes sure My question is: Why the api that I generate doesn't work? Edited June 2, 2020 by Alan1234 Link to comment Share on other sites More sharing options...
ebr 14904 Posted June 2, 2020 Share Posted June 2, 2020 You have no "appName" in your headers... Link to comment Share on other sites More sharing options...
Alan1234 0 Posted June 2, 2020 Author Share Posted June 2, 2020 Emby UserId="(guid)", Client="(string)", Device="(string)", DeviceId="(string)", Version="string", Token="(string)" This is the appName? I can't understand. If yes, what I need to put in "Token" and "Version"? Link to comment Share on other sites More sharing options...
ebr 14904 Posted June 2, 2020 Share Posted June 2, 2020 Sorry, it is "Client" in the header. 1 Link to comment Share on other sites More sharing options...
Solution PenkethBoy 2063 Posted June 2, 2020 Solution Share Posted June 2, 2020 put this in the text box Emby Client="Login-testing", Device="testing", DeviceId="4567", Version="1234" add your admin user and password below that and it will work 1 Link to comment Share on other sites More sharing options...
Alan1234 0 Posted June 2, 2020 Author Share Posted June 2, 2020 Yep, I have fix it, thanks to all. The error was that i put "Authorization=Emby Client="Login-testing", Device="testing", DeviceId="4567", Version="1234" " instead of "Emby Client="Login-testing", Device="testing", DeviceId="4567", Version="1234" " I hope that this will help others too!! Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted June 2, 2020 Share Posted June 2, 2020 becasue swagger adds the authorization to your string but in your code you need to add that yourself Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now