AttributeError: 'dict' object has no attribute 'decode'
See original GitHub issue$ rainbowstream -iot
/Users/skumaran/rainbow/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
You are running latest version (1.2.7)
We have connection problem with twitter REST API right now :(
Traceback (most recent call last):
File "/Users/skumaran/rainbow/bin/rainbowstream", line 8, in <module>
load_entry_point('rainbowstream==1.2.7', 'console_scripts', 'rainbowstream')()
File "/Users/skumaran/rainbow/lib/python2.7/site-packages/rainbowstream/rainbow.py", line 2198, in fly
detail_twitter_error(e)
File "/Users/skumaran/rainbow/lib/python2.7/site-packages/rainbowstream/util.py", line 20, in detail_twitter_error
info = "Error: " + twitterException.response_data.decode('utf8')
AttributeError: 'dict' object has no attribute 'decode'
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
AttributeError: 'dict' object has no attribute 'decode'
I am trying to run a service even when API link is down but I keep getting the following error: AttributeError: 'dict' object...
Read more >AttributeError: 'dict' object has no attribute 'read' | bobbyhadz
The "AttributeError: 'dict' object has no attribute 'read'" occurs when we try to access the read attribute on a dictionary, e.g. by passing ......
Read more >API call - 'dict' object has no attribute 'decode' : r/bitmessage
I'm sending 4 units of information to the API: "String: receivers BM", "String: senders BM", Base64.
Read more >AttributeError("'dict' object has no attribute 'decode'",) when ...
Probably not always reproducible, I often uses this function and only today it breaks. Traceback (most recent call last):. File "/usr/local/ ...
Read more >How To Solve 'Str' Object Has No Attribute 'Decode' Error
The 'str' object has no attribute 'decode' error occurs when you try to decode an object that is already decoded. So, you can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is fixed in 5b5f261a7b3552b9bca72bdc72317af1566d243e and the newest version (1.3.1)
Thanks! That should work. I managed to create a pull request too which keeps your previous conditions intact. https://github.com/DTVD/rainbowstream/pull/125 (This is based on top of 5b5f261 and you can consider pulling it).