ansible / ansibullbot

Bot for management of Ansible issues and PRs on GitHub.
GNU General Public License v3.0
203 stars 126 forks source link

new traceback #573

Closed jctanner closed 7 years ago

jctanner commented 7 years ago
2017-06-13 18:42:27,767 INFO ansible version: 2.4.0
2017-06-13 18:42:29,486 DEBUG https://github.com/ansible/ansible/issues/12797
2017-06-13 18:42:29,490 DEBUG Starting new HTTPS connection (1): github.com
2017-06-13 18:42:29,595 DEBUG https://github.com:443 "GET /ansible/ansible/issues/12797 HTTP/1.1" 302 None
2017-06-13 18:42:29,616 DEBUG https://github.com:443 "GET /ansible/ansible/pull/12797 HTTP/1.1" 502 54887
> /home/ansibot/ansibullbot/lib/utils/webscraper.py(844)parse_issue_page_to_summary()
-> if 'state-merged' in state_div.attrs['class']:
(Epdb)
(Epdb)
(Epdb)
(Epdb) bt
  /home/ansibot/ansibullbot/triage_ansible.py(117)<module>()
-> main()
  /home/ansibot/ansibullbot/triage_ansible.py(113)main()
-> AnsibleTriage(args).start()
  /home/ansibot/ansibullbot/lib/triagers/defaulttriager.py(280)start()
-> self.loop()
  /home/ansibot/ansibullbot/lib/triagers/defaulttriager.py(762)loop()
-> self.run()
  /home/ansibot/ansibullbot/lib/triagers/ansible.py(476)run()
-> self.process(iw)
  /home/ansibot/ansibullbot/lib/triagers/ansible.py(1811)process()
-> self.meta,
  /home/ansibot/ansibullbot/lib/triagers/plugins/needs_revision.py(81)get_needs_revision_facts()
-> www_summary = triager.gws.get_single_issue_summary(rfn, iw.number)
  /home/ansibot/ansibullbot/lib/utils/webscraper.py(243)get_single_issue_summary()
-> summary = self.parse_issue_page_to_summary(soup, url=rr.url)
> /home/ansibot/ansibullbot/lib/utils/webscraper.py(844)parse_issue_page_to_summary()
-> if 'state-merged' in state_div.attrs['class']:
jctanner commented 7 years ago

I've shifted over to the graphql api, so I'm not sure this will ever get fixed.

jctanner commented 7 years ago
2017-06-28 01:01:32,875 DEBUG https://github.com/ansible/ansible/issues/26157
2017-06-28 01:01:32,879 DEBUG Starting new HTTPS connection (1): github.com
2017-06-28 01:01:32,975 DEBUG https://github.com:443 "GET /ansible/ansible/issues/26157 HTTP/1.1" 502 54887
2017-06-28 01:01:33,009 ERROR breakpoint!
> /home/ansibot/ansibullbot/lib/utils/webscraper.py(869)parse_issue_page_to_summary()
-> if 'state-merged' in state_div.attrs['class']:
(Epdb)
(Epdb)
(Epdb)
(Epdb)
(Epdb)
(Epdb)
(Epdb)
(Epdb)
(Epdb)
(Epdb) l
864                     logging.error('breakpoint!')
865                     import epdb; epdb.st()
866                 else:
867                     raise Exception('no state div')
868
869  ->         if 'state-merged' in state_div.attrs['class']:
870                 data['state'] = 'closed'
871                 data['merged'] = True
872             elif 'state-closed' in state_div.attrs['class']:
873                 data['state'] = 'closed'
874                 if data['type'] == 'pullrequest':
jctanner commented 7 years ago
     <title>
      Unicorn! · GitHub
     </title>

...

    </img>
   </p>
   <p>
    <strong>
     This page is taking way too long to load.
    </strong>
   </p>
   <p>
    Sorry about that. Please try refreshing and contact us if the problem persists.
   </p>
   <div id="suggestions">
    <a href="https://github.com/contact">
     Contact Support
    </a>
    —
    <a href="https://status.github.com">
     GitHub Status
    </a>
    —
    <a href="https://twitter.com/githubstatus">
     @githubstatus
    </a>
   </div>