TradingView-API icon indicating copy to clipboard operation
TradingView-API copied to clipboard

fix(getUser): deal with unexpected notifications structure

Open clins1994 opened this issue 1 year ago • 1 comments

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

Pre-requisites

  • [ ] example of the response highlighting the unexpected notifications structure
  • [ ] proof of a successful test run

clins1994 avatar Jun 28 '24 10:06 clins1994

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 👍

nepomucen-s avatar Jul 01 '24 17:07 nepomucen-s