Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var bz = require("bz");
- var bugzilla = bz.createClient({
- url: "https://bugzillaserver/bugzilla/",
- username: 'username',
- password: 'password',
- timeout: 30000
- });
- bugzilla.bugHistory(1005, function(error,bug){
- if (!error) {
- alert(bug.summary);
- }
- });
- D:testProjectnode_modulesbzbuildnodeindex.js:365
- if (typeof parsedBody.result !== 'undefined') {
- ^
- TypeError: Cannot read property 'result' of undefined
- at BugzillaClient.handleResponse (D:testProjectnode_modulesbzbuildnodeindex.js:365:28)
- at _APIRequest.req.onerror (D:testProjectnode_modulesbzbuildnodeindex.js:334:14)
- at dispatchEvent (D:testProjectnode_modulesbznode_modulesxmlhttprequestlibXMLHttpRequest.s:591:25)
- at handleError (D:testProjectnode_modulesbznode_modulesxmlhttprequestlibXMLHttpRequest.s:533:10)
- at ClientRequest.errorHandler (D:testProjectnode_modulesbznode_modulesxmlhttprequestlibXMLHttpRequest.s:459:14)
- at ClientRequest.EventEmitter.emit (events.js:95:17)
- at CleartextStream.socketErrorListener (http.js:1528:9)
- at CleartextStream.EventEmitter.emit (events.js:95:17)
- at Socket.onerror (tls.js:1425:17)
- at Socket.EventEmitter.emit (events.js:117:20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement