question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
sqmkcommented, Oct 13, 2016

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.deviceType if you don’t want it to be “huejay”.

0reactions
danieldooleycommented, Oct 14, 2016

Thanks @sqmk the code above works perfectly with version 1.4.1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found