iKenchu 1 Posted June 28, 2022 Share Posted June 28, 2022 (edited) Hi, i have a problem wen i use API for change account password: http://SERVER/emby/Users/ID/Password?api_key=API { "CurrentPw": "", "NewPw": "1234", "ResetPassword": false } i riceve this error: Value cannot be null. (Parameter 'newPasswordHash') How can i FIX IT? Edited June 28, 2022 by iKenchu Link to comment Share on other sites More sharing options...
Luke 37180 Posted June 29, 2022 Share Posted June 29, 2022 Hi, from the surface, your request looks OK to me. Can you use the chrome debugger to monitor the request sent by the emby web interface on the change password screen. How does it compare? Link to comment Share on other sites More sharing options...
clost 0 Posted March 30, 2023 Share Posted March 30, 2023 am not work either Link to comment Share on other sites More sharing options...
Luke 37180 Posted March 30, 2023 Share Posted March 30, 2023 Are you able to change password in the web app? Link to comment Share on other sites More sharing options...
lostinfever 0 Posted July 4, 2023 Share Posted July 4, 2023 Not work for me either , I could change password in the web or other app , but not work with api Here is my json code $json_data = array( 'Id' => $userId, 'CurrentPw' => '', 'NewPw' => $newPassword, 'ResetPassword' => true, 'newPasswordHash' => $newPasswordHash ); The curl request get http code 400 , Value cannot be null. (Parameter 'newPasswordHash') I can`t find the Parameter 'newPasswordHash' in http://swagger.emby.media/?staticview=true#/UserService/postUsersByIdPassword I have already tried to add 'newPasswordHash' => $newPasswordHash in the json_data , but it couldn`t work Is there anything wrong with the api ? Link to comment Share on other sites More sharing options...
iKenchu 1 Posted July 4, 2023 Author Share Posted July 4, 2023 Greetings, Have you found a solution? I'm forced to change CMS if this api doesn't work -.- Link to comment Share on other sites More sharing options...
iKenchu 1 Posted July 4, 2023 Author Share Posted July 4, 2023 If i use integrate swegger respose is 204 Undocumented Response headers content-length: 0 Link to comment Share on other sites More sharing options...
Luke 37180 Posted July 4, 2023 Share Posted July 4, 2023 Hi, did you compare your request to what the web app is sending? Link to comment Share on other sites More sharing options...
iKenchu 1 Posted July 5, 2023 Author Share Posted July 5, 2023 How can I see that? Link to comment Share on other sites More sharing options...
ebr 14949 Posted July 5, 2023 Share Posted July 5, 2023 1 hour ago, iKenchu said: How can I see that? Use the console feature of whichever browser you are using. For Chrome it is ctrl-shift-c. Link to comment Share on other sites More sharing options...
iKenchu 1 Posted July 10, 2023 Author Share Posted July 10, 2023 On 7/5/2023 at 11:32 PM, ebr said: Use the console feature of whichever browser you are using. For Chrome it is ctrl-shift-c. Ok, what SESSION i can see? Link to comment Share on other sites More sharing options...
Luke 37180 Posted July 10, 2023 Share Posted July 10, 2023 11 hours ago, iKenchu said: Ok, what SESSION i can see? Hi, what do you mean by session? Once you open up the debugger just watch the network tab and you’ll be able to see the requests. 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