{"action":"created","issue":{"url":"https://api.github.com/repos/python-ldap/python-ldap/issues/177","repository_url":"https://api.github.com/repos/python-ldap/python-ldap","labels_url":"https://api.github.com/repos/python-ldap/python-ldap/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/python-ldap/python-ldap/issues/177/comments","events_url":"https://api.github.com/repos/python-ldap/python-ldap/issues/177/events","html_url":"https://github.com/python-ldap/python-ldap/issues/177","id":299571088,"number":177,"title":"Exceptions don't include the message id they are an exception for","user":{"login":"gwvandesteeg","id":20346649,"avatar_url":"https://avatars2.githubusercontent.com/u/20346649?v=4","gravatar_id":"","url":"https://api.github.com/users/gwvandesteeg","html_url":"https://github.com/gwvandesteeg","followers_url":"https://api.github.com/users/gwvandesteeg/followers","following_url":"https://api.github.com/users/gwvandesteeg/following{/other_user}","gists_url":"https://api.github.com/users/gwvandesteeg/gists{/gist_id}","starred_url":"https://api.github.com/users/gwvandesteeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwvandesteeg/subscriptions","organizations_url":"https://api.github.com/users/gwvandesteeg/orgs","repos_url":"https://api.github.com/users/gwvandesteeg/repos","events_url":"https://api.github.com/users/gwvandesteeg/events{/privacy}","received_events_url":"https://api.github.com/users/gwvandesteeg/received_events","type":"User","site_admin":false},"labels":[{"id":758969474,"url":"https://api.github.com/repos/python-ldap/python-ldap/labels/help%20wanted","name":"help wanted","color":"33aa3f","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-23T01:41:09Z","updated_at":"2018-02-26T20:54:58Z","closed_at":null,"author_association":"NONE","body":"**Issue description:**\r\nWhen using the async methods and polling for results using the result(msg=RES_ANY), an exception can get raised since one of the async calls generated caused the error.\r\nThe exception raised does not include the message id of the request that caused the exception.\r\nHaving 10 outstanding requests and receiving an exception for one (ie. ldap.ALREADY_EXISTS) and not knowing which request this was for since we're not receiving the msgid in the response.\r\n\r\n\r\n**Steps to reproduce:** \r\nconnect to python\r\nalternate an add and a search query using the same query three times (each) using the async methods (or randomise the order)\r\npoll for results until you've received a response for each outstanding request.\r\nall the searches should complete, one of the adds should complete, and two of the adds should've failed, but which add.. which message ids.\r\n\r\n**Operating system:** \r\nLinux\r\n\r\n**Python version:** \r\n2.7+\r\n\r\n**python-ldap version:** \r\nall\r\n"},"comment":{"url":"https://api.github.com/repos/python-ldap/python-ldap/issues/comments/368646885","html_url":"https://github.com/python-ldap/python-ldap/issues/177#issuecomment-368646885","issue_url":"https://api.github.com/repos/python-ldap/python-ldap/issues/177","id":368646885,"user":{"login":"gwvandesteeg","id":20346649,"avatar_url":"https://avatars2.githubusercontent.com/u/20346649?v=4","gravatar_id":"","url":"https://api.github.com/users/gwvandesteeg","html_url":"https://github.com/gwvandesteeg","followers_url":"https://api.github.com/users/gwvandesteeg/followers","following_url":"https://api.github.com/users/gwvandesteeg/following{/other_user}","gists_url":"https://api.github.com/users/gwvandesteeg/gists{/gist_id}","starred_url":"https://api.github.com/users/gwvandesteeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwvandesteeg/subscriptions","organizations_url":"https://api.github.com/users/gwvandesteeg/orgs","repos_url":"https://api.github.com/users/gwvandesteeg/repos","events_url":"https://api.github.com/users/gwvandesteeg/events{/privacy}","received_events_url":"https://api.github.com/users/gwvandesteeg/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T20:54:58Z","updated_at":"2018-02-26T20:54:58Z","author_association":"NONE","body":"That is basically the same idea I had when looking at the code base,  initialise msgid to None and then set it if we get one,  or a negative value will do just as well for no message id present."}}
{"actor":{"display_login":"gwvandesteeg"}}