{"action":"closed","issue":{"url":"https://api.github.com/repos/trek10inc/awsume/issues/29","repository_url":"https://api.github.com/repos/trek10inc/awsume","labels_url":"https://api.github.com/repos/trek10inc/awsume/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/trek10inc/awsume/issues/29/comments","events_url":"https://api.github.com/repos/trek10inc/awsume/issues/29/events","html_url":"https://github.com/trek10inc/awsume/issues/29","id":306303293,"number":29,"title":"TypeError: datetime.datetime(2018, 3, 19, 12, 52, 54, tzinfo=tzutc()) is not JSON serializable","user":{"login":"felipe1982","id":275621,"avatar_url":"https://avatars2.githubusercontent.com/u/275621?v=4","gravatar_id":"","url":"https://api.github.com/users/felipe1982","html_url":"https://github.com/felipe1982","followers_url":"https://api.github.com/users/felipe1982/followers","following_url":"https://api.github.com/users/felipe1982/following{/other_user}","gists_url":"https://api.github.com/users/felipe1982/gists{/gist_id}","starred_url":"https://api.github.com/users/felipe1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipe1982/subscriptions","organizations_url":"https://api.github.com/users/felipe1982/orgs","repos_url":"https://api.github.com/users/felipe1982/repos","events_url":"https://api.github.com/users/felipe1982/events{/privacy}","received_events_url":"https://api.github.com/users/felipe1982/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"mbarneyjr","id":11701776,"avatar_url":"https://avatars2.githubusercontent.com/u/11701776?v=4","gravatar_id":"","url":"https://api.github.com/users/mbarneyjr","html_url":"https://github.com/mbarneyjr","followers_url":"https://api.github.com/users/mbarneyjr/followers","following_url":"https://api.github.com/users/mbarneyjr/following{/other_user}","gists_url":"https://api.github.com/users/mbarneyjr/gists{/gist_id}","starred_url":"https://api.github.com/users/mbarneyjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbarneyjr/subscriptions","organizations_url":"https://api.github.com/users/mbarneyjr/orgs","repos_url":"https://api.github.com/users/mbarneyjr/repos","events_url":"https://api.github.com/users/mbarneyjr/events{/privacy}","received_events_url":"https://api.github.com/users/mbarneyjr/received_events","type":"User","site_admin":false},"assignees":[{"login":"mbarneyjr","id":11701776,"avatar_url":"https://avatars2.githubusercontent.com/u/11701776?v=4","gravatar_id":"","url":"https://api.github.com/users/mbarneyjr","html_url":"https://github.com/mbarneyjr","followers_url":"https://api.github.com/users/mbarneyjr/followers","following_url":"https://api.github.com/users/mbarneyjr/following{/other_user}","gists_url":"https://api.github.com/users/mbarneyjr/gists{/gist_id}","starred_url":"https://api.github.com/users/mbarneyjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbarneyjr/subscriptions","organizations_url":"https://api.github.com/users/mbarneyjr/orgs","repos_url":"https://api.github.com/users/mbarneyjr/repos","events_url":"https://api.github.com/users/mbarneyjr/events{/privacy}","received_events_url":"https://api.github.com/users/mbarneyjr/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-03-19T00:53:41Z","updated_at":"2018-03-20T03:40:32Z","closed_at":"2018-03-20T03:40:32Z","author_association":"NONE","body":"Getting this error with 3.0.9 in WSL environment (opensuse)\r\n\r\n```\r\nfelipe@DESKTOP-TCPCKB9:~/Downloads$ awsume -a velocity-ipaas-nonprod\r\nAWSume: User profile credentials will expire at: 2018-03-19 12:52:54+00:00\r\nAWSume: Role profile credentials will expire at: 2018-03-19 11:52:55\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/awsumepy\", line 11, in <module>\r\n    load_entry_point('awsume==3.0.9', 'console_scripts', 'awsumepy')()\r\n  File \"/usr/lib/python2.7/site-packages/awsume/awsumepy.py\", line 1415, in main\r\n    awsume.run(command_line_arguments)\r\n  File \"/usr/lib/python2.7/site-packages/awsume/awsumepy.py\", line 1383, in run\r\n    func(self, arguments, profiles, user_session, role_session)\r\n  File \"/usr/lib/python2.7/site-packages/awsume/awsumepy.py\", line 862, in get_role_session_callback\r\n    start_auto_awsume(args, app, profiles, AWS_CREDENTIALS_FILE, user_session, role_session)\r\n  File \"/usr/lib/python2.7/site-packages/awsume/awsumepy.py\", line 892, in start_auto_awsume\r\n    write_auto_awsume_session(args.target_profile_name, auto_profile, credentials_file_path)\r\n  File \"/usr/lib/python2.7/site-packages/awsume/awsumepy.py\", line 958, in write_auto_awsume_session\r\n    LOG.debug('AutoAwsume profile: %s', json.dumps(auto_profile, indent=2))\r\n  File \"/usr/lib64/python2.7/json/__init__.py\", line 251, in dumps\r\n    sort_keys=sort_keys, **kw).encode(obj)\r\n  File \"/usr/lib64/python2.7/json/encoder.py\", line 209, in encode\r\n    chunks = list(chunks)\r\n  File \"/usr/lib64/python2.7/json/encoder.py\", line 434, in _iterencode\r\n    for chunk in _iterencode_dict(o, _current_indent_level):\r\n  File \"/usr/lib64/python2.7/json/encoder.py\", line 408, in _iterencode_dict\r\n    for chunk in chunks:\r\n  File \"/usr/lib64/python2.7/json/encoder.py\", line 442, in _iterencode\r\n    o = _default(o)\r\n  File \"/usr/lib64/python2.7/json/encoder.py\", line 184, in default\r\n    raise TypeError(repr(o) + \" is not JSON serializable\")\r\nTypeError: datetime.datetime(2018, 3, 19, 12, 52, 54, tzinfo=tzutc()) is not JSON serializable\r\n```"}}
{"actor":{"display_login":"mbarneyjr"}}