iKenchu 1 Posted June 28, 2022 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
Luke 40138 Posted June 29, 2022 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?
Luke 40138 Posted March 30, 2023 Posted March 30, 2023 Are you able to change password in the web app?
lostinfever 0 Posted July 4, 2023 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 ?
iKenchu 1 Posted July 4, 2023 Author Posted July 4, 2023 Greetings, Have you found a solution? I'm forced to change CMS if this api doesn't work -.-
iKenchu 1 Posted July 4, 2023 Author Posted July 4, 2023 If i use integrate swegger respose is 204 Undocumented Response headers content-length: 0
Luke 40138 Posted July 4, 2023 Posted July 4, 2023 Hi, did you compare your request to what the web app is sending?
ebr 15679 Posted July 5, 2023 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.
iKenchu 1 Posted July 10, 2023 Author 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?
Luke 40138 Posted July 10, 2023 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.
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