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

load_acl uncaught exception in creating a cm ticket #39

Closed
jathanism opened this Issue Sep 7, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@jathanism
Member

jathanism commented Sep 7, 2012

Traceback (most recent call last): 
 File "/usr/local/bin/load_acl", line 764, in <module> 
   main() 
 File "/usr/local/bin/load_acl", line 704, in main 
   cm_ticketnum = create_cm_ticket(work, oncall) 
 File "/etc/trigger/settings.py", line 421, in create_cm_ticket 
   return create_ticket(**oncall) 
 File "/usr/local/lib/python/site-packages/aol/remedy.py", line 181, in create_ticket 
   verbose=verbose, debug=debug) 
 File "/usr/local/lib/python/site-packages/aol/remedy.py", line 259, in __init__ 
   self.client = setup_client(self.url) 
 File "/usr/local/lib/python/site-packages/aol/remedy.py", line 221, in setup_client 
   client = Client(url) 
 File "/usr/local/lib/python/site-packages/suds/client.py", line 112, in __init__ 
   self.wsdl = reader.open(url) 
 File "/usr/local/lib/python/site-packages/suds/reader.py", line 152, in open 
   d = self.fn(url, self.options) 
 File "/usr/local/lib/python/site-packages/suds/wsdl.py", line 136, in __init__ 
   d = reader.open(url) 
 File "/usr/local/lib/python/site-packages/suds/reader.py", line 79, in open 
   d = self.download(url) 
 File "/usr/local/lib/python/site-packages/suds/reader.py", line 95, in download 
   fp = self.options.transport.open(Request(url)) 
 File "/usr/local/lib/python/site-packages/suds/transport/https.py", line 60, in open 
   return HttpTransport.open(self, request) 
 File "/usr/local/lib/python/site-packages/suds/transport/http.py", line 62, in open 
   return self.u2open(u2request) 
 File "/usr/local/lib/python/site-packages/suds/transport/http.py", line 118, in u2open 
   return url.open(u2request, timeout=tm) 
 File "/usr/local/lib/python2.6/urllib2.py", line 391, in open 
   response = self._open(req, data) 
 File "/usr/local/lib/python2.6/urllib2.py", line 409, in _open 
   '_open', req) 
 File "/usr/local/lib/python2.6/urllib2.py", line 369, in _call_chain 
   result = func(*args) 
 File "/usr/local/lib/python2.6/urllib2.py", line 1178, in https_open 
   return self.do_open(httplib.HTTPSConnection, req) 
 File "/usr/local/lib/python2.6/urllib2.py", line 1145, in do_open 
   raise URLError(err) 
urllib2.URLError: <urlopen error The read operation timed out> 

@ghost ghost assigned mvh Sep 7, 2012

@jathanism

This comment has been minimized.

Member

jathanism commented Sep 7, 2012

We should wrap the call to settings.create_cm_ticket within load_acl to catch any exception and set the cm_ticketnum value to None so that it can fail gracefully without crashing.

@mvh mvh closed this Sep 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment