Skip to content

Instantly share code, notes, and snippets.

@joshthecoder
Created August 21, 2013 05:47
Show Gist options
  • Save joshthecoder/6290725 to your computer and use it in GitHub Desktop.
Save joshthecoder/6290725 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/Users/jroesslein/Development/Libraries/Python/tweepy/tweepy/tests/test_api.py", line 204, in testupdateprofilebannerimage
self.api.update_profile_banner('examples/banner.png')
File "/Users/jroesslein/Development/Libraries/Python/tweepy/tweepy/tweepy/api.py", line 377, in update_profile_banner
)(self, post_data=post_data, headers=headers)
File "/Users/jroesslein/Development/Libraries/Python/tweepy/tweepy/tweepy/binder.py", line 194, in _call
return method.execute()
File "/Users/jroesslein/Development/Libraries/Python/tweepy/tweepy/tweepy/binder.py", line 151, in execute
resp = conn.getresponse()
File "/Users/jroesslein/Development/Libraries/Python/tweepy/tweepy/.env/lib/python2.7/site-packages/httreplay/stubs/base.py", line 142, in getresponse
self._replay_settings.replay_file_name)
File "/Users/jroesslein/Development/Libraries/Python/tweepy/tweepy/.env/lib/python2.7/site-packages/httreplay/recording.py", line 80, in save
cls=RequestResponseEncoder)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 181, in dump
for chunk in iterable:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 425, in _iterencode
for chunk in _iterencode_list(o, _current_indent_level):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 326, in _iterencode_list
for chunk in chunks:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 402, in _iterencode_dict
for chunk in chunks:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 384, in _iterencode_dict
yield _encoder(value)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 116: invalid start byte
-------------------- >> begin captured logging << --------------------
httreplay.recording: DEBUG: ReplayRecordingManager starting new 'record.json'
httreplay.stubs.base: DEBUG: ReplayConnectionHelper trying POST api.twitter.com:443//1.1/account/update_profile_banner.json
httreplay.stubs.base: DEBUG: ReplayConnectionHelper calling HTTPSConnection.getresponse()
httreplay.recording: DEBUG: ReplayRecordingManager saving to 'record.json'
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment