{"action":"created","issue":{"url":"https://api.github.com/repos/mjs7231/django-dbbackup/issues/23","labels_url":"https://api.github.com/repos/mjs7231/django-dbbackup/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/mjs7231/django-dbbackup/issues/23/comments","events_url":"https://api.github.com/repos/mjs7231/django-dbbackup/issues/23/events","html_url":"https://github.com/mjs7231/django-dbbackup/issues/23","id":71403340,"number":23,"title":"TypeError: initial_value must be unicode or None, not str - 2.0.3","user":{"login":"mjs7231","id":435619,"avatar_url":"https://avatars.githubusercontent.com/u/435619?v=3","gravatar_id":"","url":"https://api.github.com/users/mjs7231","html_url":"https://github.com/mjs7231","followers_url":"https://api.github.com/users/mjs7231/followers","following_url":"https://api.github.com/users/mjs7231/following{/other_user}","gists_url":"https://api.github.com/users/mjs7231/gists{/gist_id}","starred_url":"https://api.github.com/users/mjs7231/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjs7231/subscriptions","organizations_url":"https://api.github.com/users/mjs7231/orgs","repos_url":"https://api.github.com/users/mjs7231/repos","events_url":"https://api.github.com/users/mjs7231/events{/privacy}","received_events_url":"https://api.github.com/users/mjs7231/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-27T21:12:00Z","updated_at":"2015-04-27T21:12:31Z","closed_at":null,"body":"2.0.3 s3 backup, reverted to 1.9.0 and it is working as expected\r\n  \r\n    Backing Up Database: tpg\r\n      Running: pg_dump --username=tpg --host=127.0.0.1 --port=5432 tpg\r\n      Backup tempfile created: 40.7 MB\r\n      Writing file to AmazonS3: <bound method Storage.backup_dir of <dbbackup.storage.s3_storage.Storage instance at 0x4078368>>, filename: default.backup\r\n    Traceback (most recent call last):\r\n      File \"manage.py\", line 11, in <module>\r\n        execute_from_command_line(sys.argv)\r\n      File \"/home/tpg/.virtualenvs/tpgenv/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 399, in execute_from_command_line\r\n        utility.execute()\r\n      File \"/home/tpg/.virtualenvs/tpgenv/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 392, in execute\r\n        self.fetch_command(subcommand).run_from_argv(self.argv)\r\n      File \"/home/tpg/.virtualenvs/tpgenv/local/lib/python2.7/site-packages/django/core/management/base.py\", line 242, in run_from_argv\r\n        self.execute(*args, **options.__dict__)\r\n      File \"/home/tpg/.virtualenvs/tpgenv/local/lib/python2.7/site-packages/django/core/management/base.py\", line 285, in execute\r\n        output = self.handle(*args, **options)\r\n      File \"/home/tpg/.virtualenvs/tpgenv/local/lib/python2.7/site-packages/dbbackup/utils.py\", line 54, in wrapper\r\n        func(*args, **kwargs)\r\n      File \"/home/tpg/.virtualenvs/tpgenv/local/lib/python2.7/site-packages/dbbackup/management/commands/dbbackup.py\", line 53, in handle\r\n        self.save_new_backup(database, database_key)\r\n      File \"/home/tpg/.virtualenvs/tpgenv/local/lib/python2.7/site-packages/dbbackup/management/commands/dbbackup.py\", line 74, in save_new_backup\r\n        self.storage.write_file(outputfile, filename)\r\n      File \"/home/tpg/.virtualenvs/tpgenv/local/lib/python2.7/site-packages/dbbackup/storage/s3_storage.py\", line 63, in write_file\r\n        tmpfile = StringIO(chunkdata)\r\n    TypeError: initial_value must be unicode or None, not str"},"comment":{"url":"https://api.github.com/repos/mjs7231/django-dbbackup/issues/comments/96822614","html_url":"https://github.com/mjs7231/django-dbbackup/issues/23#issuecomment-96822614","issue_url":"https://api.github.com/repos/mjs7231/django-dbbackup/issues/23","id":96822614,"user":{"login":"mjs7231","id":435619,"avatar_url":"https://avatars.githubusercontent.com/u/435619?v=3","gravatar_id":"","url":"https://api.github.com/users/mjs7231","html_url":"https://github.com/mjs7231","followers_url":"https://api.github.com/users/mjs7231/followers","following_url":"https://api.github.com/users/mjs7231/following{/other_user}","gists_url":"https://api.github.com/users/mjs7231/gists{/gist_id}","starred_url":"https://api.github.com/users/mjs7231/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjs7231/subscriptions","organizations_url":"https://api.github.com/users/mjs7231/orgs","repos_url":"https://api.github.com/users/mjs7231/repos","events_url":"https://api.github.com/users/mjs7231/events{/privacy}","received_events_url":"https://api.github.com/users/mjs7231/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T21:12:31Z","updated_at":"2015-04-27T21:12:31Z","body":"I think the fix for this is to replace StringIO with BytesIO."}}