{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2674","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2674/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2674/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2674/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2674","id":187139936,"number":2674,"title":"New 'MessageToDict' implementation breaks with unknown entry types","user":{"login":"tseaver","id":242750,"avatar_url":"https://avatars2.githubusercontent.com/u/242750?v=4","gravatar_id":"","url":"https://api.github.com/users/tseaver","html_url":"https://github.com/tseaver","followers_url":"https://api.github.com/users/tseaver/followers","following_url":"https://api.github.com/users/tseaver/following{/other_user}","gists_url":"https://api.github.com/users/tseaver/gists{/gist_id}","starred_url":"https://api.github.com/users/tseaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tseaver/subscriptions","organizations_url":"https://api.github.com/users/tseaver/orgs","repos_url":"https://api.github.com/users/tseaver/repos","events_url":"https://api.github.com/users/tseaver/events{/privacy}","received_events_url":"https://api.github.com/users/tseaver/received_events","type":"User","site_admin":false},"labels":[{"id":311535631,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/labels/api:%20logging","name":"api: logging","color":"f8f8f8","default":false},{"id":401639079,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/labels/grpc","name":"grpc","color":"bfdadc","default":false},{"id":544604243,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/labels/priority:%20p2","name":"priority: p2","color":"fef2c0","default":false},{"id":77438580,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/labels/type:%20bug","name":"type: bug","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-11-03T17:38:36Z","updated_at":"2018-05-09T21:58:59Z","closed_at":"2017-04-06T18:42:12Z","author_association":"MEMBER","body":"```python\r\n>>> from google.cloud.logging import Client\r\n>>> client = Client()\r\n>>> def do_something_with(entry): pass\r\n... \r\n>>> for entry in client.list_entries():\r\n...     do_something_with(entry)\r\n... \r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/tseaver/projects/agendaless/Google/src/google-cloud-python/.tox/docs/lib/python2.7/site-packages/google/cloud/iterator.py\", line 211, in _items_iter\r\n    for item in page:\r\n  File \"/home/tseaver/projects/agendaless/Google/src/google-cloud-python/.tox/docs/lib/python2.7/site-packages/google/cloud/iterator.py\", line 155, in next\r\n    result = self._item_to_value(self._parent, item)\r\n  File \"/home/tseaver/projects/agendaless/Google/src/google-cloud-python/.tox/docs/lib/python2.7/site-packages/google/cloud/logging/_gax.py\", line 478, in _item_to_entry\r\n    resource = MessageToDict(entry_pb)\r\n  File \"/home/tseaver/projects/agendaless/Google/src/google-cloud-python/.tox/docs/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 133, in MessageToDict\r\n    return printer._MessageToJsonObject(message)\r\n  File \"/home/tseaver/projects/agendaless/Google/src/google-cloud-python/.tox/docs/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 164, in _MessageToJsonObject\r\n    return self._RegularMessageToJsonObject(message, js)\r\n  File \"/home/tseaver/projects/agendaless/Google/src/google-cloud-python/.tox/docs/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 196, in _RegularMessageToJsonObject\r\n    js[name] = self._FieldToJsonObject(field, value)\r\n  File \"/home/tseaver/projects/agendaless/Google/src/google-cloud-python/.tox/docs/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 230, in _FieldToJsonObject\r\n    return self._MessageToJsonObject(value)\r\n  File \"/home/tseaver/projects/agendaless/Google/src/google-cloud-python/.tox/docs/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 162, in _MessageToJsonObject\r\n    return methodcaller(_WKTJSONMETHODS[full_name][0], message)(self)\r\n  File \"/home/tseaver/projects/agendaless/Google/src/google-cloud-python/.tox/docs/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 266, in _AnyMessageToJsonObject\r\n    sub_message = _CreateMessageFromTypeUrl(type_url)\r\n  File \"/home/tseaver/projects/agendaless/Google/src/google-cloud-python/.tox/docs/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 341, in _CreateMessageFromTypeUrl\r\n    'Can not find message descriptor by type_url: {0}.'.format(type_url))\r\nTypeError: Can not find message descriptor by type_url: type.googleapis.com/google.cloud.audit.AuditLog.\r\n```"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/comments/387888403","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2674#issuecomment-387888403","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2674","id":387888403,"user":{"login":"yiga2","id":25224265,"avatar_url":"https://avatars0.githubusercontent.com/u/25224265?v=4","gravatar_id":"","url":"https://api.github.com/users/yiga2","html_url":"https://github.com/yiga2","followers_url":"https://api.github.com/users/yiga2/followers","following_url":"https://api.github.com/users/yiga2/following{/other_user}","gists_url":"https://api.github.com/users/yiga2/gists{/gist_id}","starred_url":"https://api.github.com/users/yiga2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiga2/subscriptions","organizations_url":"https://api.github.com/users/yiga2/orgs","repos_url":"https://api.github.com/users/yiga2/repos","events_url":"https://api.github.com/users/yiga2/events{/privacy}","received_events_url":"https://api.github.com/users/yiga2/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T21:58:59Z","updated_at":"2018-05-09T21:58:59Z","author_association":"NONE","body":"Related but #5313 is to request more documentation whereas here is to report an error with `MessageToJson`.  \r\n\r\nIf the documentation highlights a different method to use, I agree my present comment is not applicable. "}}
{"actor":{"display_login":"yiga2"}}