Advertisement
Guest User

Untitled

a guest
May 12th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. var bz = require("bz");
  2.  
  3. var bugzilla = bz.createClient({
  4. url: "https://bugzillaserver/bugzilla/",
  5. username: 'username',
  6. password: 'password',
  7. timeout: 30000
  8. });
  9.  
  10. bugzilla.bugHistory(1005, function(error,bug){
  11. if (!error) {
  12. alert(bug.summary);
  13. }
  14. });
  15.  
  16. D:testProjectnode_modulesbzbuildnodeindex.js:365
  17. if (typeof parsedBody.result !== 'undefined') {
  18. ^
  19. TypeError: Cannot read property 'result' of undefined
  20. at BugzillaClient.handleResponse (D:testProjectnode_modulesbzbuildnodeindex.js:365:28)
  21. at _APIRequest.req.onerror (D:testProjectnode_modulesbzbuildnodeindex.js:334:14)
  22. at dispatchEvent (D:testProjectnode_modulesbznode_modulesxmlhttprequestlibXMLHttpRequest.s:591:25)
  23. at handleError (D:testProjectnode_modulesbznode_modulesxmlhttprequestlibXMLHttpRequest.s:533:10)
  24. at ClientRequest.errorHandler (D:testProjectnode_modulesbznode_modulesxmlhttprequestlibXMLHttpRequest.s:459:14)
  25. at ClientRequest.EventEmitter.emit (events.js:95:17)
  26. at CleartextStream.socketErrorListener (http.js:1528:9)
  27. at CleartextStream.EventEmitter.emit (events.js:95:17)
  28. at Socket.onerror (tls.js:1425:17)
  29. at Socket.EventEmitter.emit (events.js:117:20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement