Mathieu2301 / TradingView-API

📈 Get real-time stocks from TradingView
1.31k stars 307 forks source link

fix(getUser): deal with unexpected notifications structure #244

Open clins1994 opened 1 week ago

clins1994 commented 1 week ago

Attempt at addressing this issue: https://github.com/Mathieu2301/TradingView-API/issues/243

Pre-requisites

nepomucen-s commented 4 days ago

Thanks for the quick fix.

This is the response I get from the server, just the notifications_count part:

"notification_count":{"following":{},"user":{}}

Here is a quick test using a debugger. Note that I have the variable named rs and not data as I'm using 3.4.1: image

Everything works as expected now 👍