-
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
query() method fails behind proxy in node-webkit application #7
Comments
I'm fairly sure that this is an issue with the underling request node module. If you manually edit the package.json for rally-node to use a more recent version of request does it fix the issue? Currently it's pegged at 2.29.x. The head revision is 2.51.x. |
using 2.51.x results in the following errors when calling: npm install (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. |
bad timing... apparently my proxy is unavailable which is what is causing the redirect loop. I will try this again tomorrow when (hopefully) I can connect to the proxy. |
I changed the request version to 2.51.x which seems to have fixed the issue. |
awesome. there is another pull request i want to get merged in and then i will release a new version of the package with an updated request version as well. thanks for reporting the issue and for your help in diagnosing it! |
resolved as of version 0.2.0 |
I have discovered an issue where the instance returned from calling rally(options) fails to work when behind a proxy if run inside a node-webkit application. Here is what I'm doing in the applcation.
Initializing the API:
this.restApi = rally({
user: username, //stored elswhere
pass: password, //pass in from the suer
requestOptions: {
headers: {
'X-RallyIntegrationName': 'Rally End of Day Prompt',
'X-RallyIntegrationVendor': 'ADP',
'X-RallyIntegrationVersion': '1.0'
},
proxy: "http://my.proxy.server:8080"
}
});
Call the api to request some data.
this.restApi.query({
type: 'task',
start: 1,
pageSize: 200,
limit: Infinity,
order: 'Rank',
fetch: ['FormattedID', 'Name', 'State', 'Estimate', 'TimeSpent', 'ToDo'],
query: queryUtils.where('Owner.Name', '=', this.email)
.and('State', "=", 'In-Progress')//optional filter
Calling this works fine inside a node application when launched via "node app" but fails with an error when called from a node-webkit application. The error is "Request path contains unescaped characters."
It appears that proxy information may not be getting passed through correctly. I tested this with node-webkit v0.10.x and v0.11.x
The text was updated successfully, but these errors were encountered: