DEV Community

Discussion on: # Crypto Profits Tracker (feat. Notion API) using Python

Collapse
 
benjiblaine profile image
Ben Blaine

I got an error

Traceback (most recent call last):
  File "/notion-crypto-integration-main/read.py", line 102, in <module>
    MyIntegration().UpdateIndefinitely()
  File "/notion-crypto-integration-main/read.py", line 20, in __init__
    self.getDatabaseId()
  File "/notion-crypto-integration-main/read.py", line 31, in getDatabaseId
    self.my_variables_map["DATABASE_ID"] = response.json()["results"][0]["id"]
KeyError: 'results'
Enter fullscreen mode Exit fullscreen mode
Collapse
 
tnvmadhav profile image
TnvMadhav⚡

Hello Ben,

I can help you out!

Can we connect on twitter DMs? That way we can resolve things without bloating public threads

Collapse
 
benjiblaine profile image
Ben Blaine

Please do @benjiblaine

Thread Thread
 
benjiblaine profile image
Ben Blaine

Thanks for the help @tnvmadhav ! It's working now.

I simply forgot to remove the "<" and ">" in the my_variables.yml file 🤦‍♂️

Thread Thread
 
tnvmadhav profile image
TnvMadhav⚡

😄 Thank you for stating the solution to this problem Ben!

👍🏻 This will surely help others as well.

PS: I have also updated the post regarding the same.

Some comments have been hidden by the post's author - find out more