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.

TypeError: 'NoneType' object is not subscriptable when running stream_data()

See original GitHub issue

Got this error when calling oanda.stream_data('EUR_USD', stop=7). Is there something wrong with v20? Thanks.

Traceback (most recent call last): File “o.py”, line 10, in <module> oanda.stream_data(‘EUR_USD’) File “/anaconda3/envs/py36/lib/python3.6/site-packages/tpqoa-0.0.43-py3.6.egg/tpqoa/tpqoa.py”, line 206, in stream_data TypeError: ‘NoneType’ object is not subscriptable

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yhilpischcommented, Mar 25, 2021

Without exact details, it is hard to tell. Maybe your key is not valid or something else.

0reactions
miali88commented, Sep 21, 2021

Tried Tuesday 3am BST, and again at 5pm BTS. Same error, after restarting machine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: 'NoneType' object is not subscriptable
NoneType is the type of the None object which represents a lack of value, for example, a function that does not explicitly return...
Read more >
[Solved] TypeError: 'NoneType' Object is Not Subscriptable
Learn about TypeError: 'NoneType' object is not subscriptable. When it happens, why it is raised and how to resolve it.
Read more >
TypeError: 'NoneType' object is not subscriptable when ...
The code achives what I want (at least it is when I am running my unit tests) but I am facing the TypeError...
Read more >
Python TypeError: 'NoneType' object is not subscriptable
The problem is when we try to access an item from the “new_scores” list. Our code does not work because append() returns None....
Read more >
TypeError: 'NoneType' object is not subscriptable #125 - GitHub
[Connector] TypeError: 'NoneType' object is not subscriptable Hi, ... Now when I run this code by $ python3 ip.py , it returns error....
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