desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #131965
[Bug 1480491] Re: /usr/share/oneconf/oneconf-service:httplib2.ServerNotFoundError:_conn_request:connect:connect:create_connection:getaddrinfo:process_sync:wrapper:list_machines:_get:_get:get:request_url:request:_request:_conn_request
I finally received an Apport error of oneconf, but it was another bug
(Bug #1421884). Will comment on that one.
As for this bug, I think the code is missing some try...except blocks.
For example, in "/usr/lib/python3/dist-packages/oneconf/networksync/__init__.py", line 231 (mentioned in the traceback):
full_hosts_list = self.infraclient.list_machines()
this will make a network connection. This is inside a try...except block, but it only checks for APIError. It should also check for network errors.
@Brian, the lack of those checks with try...except blocks is probably the bug here. Network errors can happen for various reasons.
I suggest adding an except block there (and in other places in that method) to check for network errors, and maybe also adding an extra catch-all except block to catch any other errors.
It would probably be better (and faster) for someone else, other than me, to do this.
What is your opinion?
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to oneconf in Ubuntu.
https://bugs.launchpad.net/bugs/1480491
Title:
/usr/share/oneconf/oneconf-
service:httplib2.ServerNotFoundError:_conn_request:connect:connect:create_connection:getaddrinfo:process_sync:wrapper:list_machines:_get:_get:get:request_url:request:_request:_conn_request
Status in oneconf package in Ubuntu:
New
Bug description:
The Ubuntu Error Tracker has been receiving reports about a problem
regarding oneconf. This problem was most recently seen with version
0.3.8, the problem page at
https://errors.ubuntu.com/problem/41aaab6ce7faa5a5dc15b54c76b0b8c7bc07bc24
contains more details.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/oneconf/+bug/1480491/+subscriptions
References