-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP 401 Error #30
Comments
A couple things. First- you should either use username/password OR an api key, but not both. You shouldn't need to worry about the CSRF token or the /security/authorize endpoint- that will be handled transparently by the toolkit once you are authenticated. An api key may be obtained by going to https://rally1.rallydev.com/login It seems like you're trying to find a story by FormattedID. In order to do that you'll need to use the Something like this should work for you:
|
I am trying to update the note section of a user story. Below is my code : var rally = require('rally'), Above code is working as expected am able to update the note section of userstory or defect. But when try to use the same with "apiKey". I got error " Item with ID not found". With username and password things working fine but not with apiKey. can you please help? |
Can you post your full code? I think the code above is just a snippet. |
console.log('\nUpdating rally comments'); var args = process.argv.slice(2); if (item.substr(0,2) === 'DE') { var rally = require('rally'), function getNotes() { function updateNotes(result) { ' + comments + ' ';} console.log(updatedNotes); return restApi.update({ ref: refUtils.getRelative(result.Results[0]._ref), data: { Notes: updatedNotes //the data with which to update the specified object } }); } function onSuccess(result) { function onError(errors) { getNotes(). Above is the complete code. |
Above code is working fine as i am giving username and password but when i try to comment username and password and give apiKey, then i got error. |
Hi @krmorse did you get the chance to look in to this? thanks in advance for the help. |
The code looks ok in general... Are you sure the api key is valid? |
@krmorse , Yes the API key is valid. |
Hi Error: Please help me in this |
Not sure if this is an error for this library or not but here goes:
When connecting i use this code
Using the
token
Which i get by going here:https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize
with my username and password. I then run this
Where
YYYYYYYYYYYd
is my real workspace ID andUSXXXXX
is a real User Story on that workspace. I get response that says:Am I missing something?
The text was updated successfully, but these errors were encountered: