Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Wrong or expired sessionid/signature" Consistently over and over again, tried fixes. #221

Open
tinguy1 opened this issue Nov 18, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tinguy1
Copy link

tinguy1 commented Nov 18, 2023

Describe the bug
Functions that use session_id and sessionid_sign do not work for me even with fresh session and auth, it always says "Wrong or expired sessionid/signature" in the console, this happens in the "getUser" function, I have made sure 100 percent that the tokens are correct, are not expired and are what is asked by the function specifically. I am creating the client with auth from web and not the login function as the login function does not work for me (not sure why will look into it).

To Reproduce

tvClient = new TradingView.Client(
    {
        token: '32 char session_id token',
        signature: 'v1 sessionid_sign'
    }
);

Expected behavior
To create the client with my account auth

Environment:

  • OS: [Windows 11]
  • Node version: [v19.3.0]
@tinguy1 tinguy1 added the bug Something isn't working label Nov 18, 2023
@tinguy1
Copy link
Author

tinguy1 commented Nov 18, 2023

I forgot to mention something, this is being tested through a electron application, it works with a simple js file in my downloads folder but when used in a electron app it sends this error, before someone responds I will try to discover a reason and solution for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants