question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
orakarocommented, Aug 6, 2015

This is fixed in 5b5f261a7b3552b9bca72bdc72317af1566d243e and the newest version (1.3.1)

0reactions
orsenthilcommented, Aug 6, 2015

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found