User creation wrong param
See original GitHub issue| App | Version |
|---|---|
| Hue Api version | 1.14.0 |
| Huejay version | 1.2.2 |
Hi,
I was trying to create a new user following the example but the response from Hue was always
Error: Philips Hue: 5, invalid/missing parameters in body
So, looking into your code, I found that you do not use the deviceType attributes but instead the name one.
For it to work I had to change :
user.deviceType = 'my_device_type'; // Default is 'huejay'
By :
user.attributes.set("name","huejay");
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Error Adding User Object to the Active Directory after adprep ...
I receive the following error. "windows cannot create the object because: the parameter is incorrect".
Read more >Active Directory: Copy User – “Parameter is Incorrect” Error
Open the properties of the user you are trying to copy. Go to the “Dial-In” tab. Under the “Callback Options section choose the...
Read more >Unable to create new users in DE - Salesforce Developers
Error: The value of the parameter specified above contains a character that is not allowed or the value exceeds the maximum allowed length....
Read more >copy user - parameter is incorrect error - Gnawgnus Realm
Open up a known good user that you can copy and on another window or another dc open up the problem user. Go...
Read more >[NSM] What does the error message "Incorrect Login ...
The reasons for the Incorrect Login Parameters message are as follows: The user name specified in the Login : field is incorrectly spelled;...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve released Huejay v1.4.1 which should fix this issue. You no longer have to specifically set
user.deviceType, or set internal attribute ‘name’, prior to creating the user. @danieldooley, let me know if your original code posted in this issue will work without any modifications.Per docs, you should continue to set device type by way of
user.deviceTypeif you don’t want it to be “huejay”.Thanks @sqmk the code above works perfectly with version 1.4.1