{"action":"created","issue":{"url":"https://api.github.com/repos/facetoe/zenpy/issues/209","repository_url":"https://api.github.com/repos/facetoe/zenpy","labels_url":"https://api.github.com/repos/facetoe/zenpy/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/facetoe/zenpy/issues/209/comments","events_url":"https://api.github.com/repos/facetoe/zenpy/issues/209/events","html_url":"https://github.com/facetoe/zenpy/issues/209","id":310057443,"number":209,"title":"Updating a macro throws exception","user":{"login":"Prodeguerriero","id":15149858,"avatar_url":"https://avatars1.githubusercontent.com/u/15149858?v=4","gravatar_id":"","url":"https://api.github.com/users/Prodeguerriero","html_url":"https://github.com/Prodeguerriero","followers_url":"https://api.github.com/users/Prodeguerriero/followers","following_url":"https://api.github.com/users/Prodeguerriero/following{/other_user}","gists_url":"https://api.github.com/users/Prodeguerriero/gists{/gist_id}","starred_url":"https://api.github.com/users/Prodeguerriero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prodeguerriero/subscriptions","organizations_url":"https://api.github.com/users/Prodeguerriero/orgs","repos_url":"https://api.github.com/users/Prodeguerriero/repos","events_url":"https://api.github.com/users/Prodeguerriero/events{/privacy}","received_events_url":"https://api.github.com/users/Prodeguerriero/received_events","type":"User","site_admin":false},"labels":[{"id":174960234,"url":"https://api.github.com/repos/facetoe/zenpy/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-03-30T12:45:07Z","updated_at":"2018-04-02T11:36:39Z","closed_at":null,"author_association":"NONE","body":"Hi there.\r\n\r\nFirst off, thanks for the great work. I am using zenpy extensively and it proves to be useful on a daily basis.\r\n\r\nNow, to the problem. I am trying to download some macros, edit them and update Zendesk with the changes.\r\n\r\nNo matter what I try to do, I get an exception thrown at me. It appears as something might be going wrong with the conversion to JSON, but I am not sure. I even tried to simply download a macro and upload it again, but it still happens. Here is a snipped of the code\r\n\r\n```python\r\nmy_macro = zenpy_client.macros(id=123456789)\r\n    for action in my_macro.actions:\r\n        print(my_macro.id, my_macro.title, action.field, action.value)\r\n        try:\r\n            updated_macro = zenpy_client.macros.update(my_macro)\r\n        except:\r\n            print(\"Whopsie. Did not update.\")\r\n```\r\n\r\nAttached you'll find the exception log.\r\n\r\nThanks!\r\n\r\n[exception.txt](https://github.com/facetoe/zenpy/files/1863583/exception.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/facetoe/zenpy/issues/comments/377912204","html_url":"https://github.com/facetoe/zenpy/issues/209#issuecomment-377912204","issue_url":"https://api.github.com/repos/facetoe/zenpy/issues/209","id":377912204,"user":{"login":"Prodeguerriero","id":15149858,"avatar_url":"https://avatars1.githubusercontent.com/u/15149858?v=4","gravatar_id":"","url":"https://api.github.com/users/Prodeguerriero","html_url":"https://github.com/Prodeguerriero","followers_url":"https://api.github.com/users/Prodeguerriero/followers","following_url":"https://api.github.com/users/Prodeguerriero/following{/other_user}","gists_url":"https://api.github.com/users/Prodeguerriero/gists{/gist_id}","starred_url":"https://api.github.com/users/Prodeguerriero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prodeguerriero/subscriptions","organizations_url":"https://api.github.com/users/Prodeguerriero/orgs","repos_url":"https://api.github.com/users/Prodeguerriero/repos","events_url":"https://api.github.com/users/Prodeguerriero/events{/privacy}","received_events_url":"https://api.github.com/users/Prodeguerriero/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T11:36:39Z","updated_at":"2018-04-02T11:36:39Z","author_association":"NONE","body":"Success!\r\nEditing actions or removing them works as expected now. :)\r\n\r\nThanks much.\r\n\r\nP.S. you should add a donation button ;)"}}
{"actor":{"display_login":"Prodeguerriero"}}