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

pytr portfolio gets stuck while unsubscribeing #61

Closed
LucEast opened this issue Apr 2, 2024 · 4 comments
Closed

pytr portfolio gets stuck while unsubscribeing #61

LucEast opened this issue Apr 2, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@LucEast
Copy link

LucEast commented Apr 2, 2024

Description of the bug
When I run pytr -v debug portfolio it gets stuck while unsubscribing ID 13 which has ISIN US67066G1040 (Nvidia) for me.

To Reproduce
Steps to reproduce the behavior:

  1. Ran the command pytr -v debug portfolio
  2. See error

Expected behavior
A clear and concise description of what you expected to happen.

Error log

...
2024-04-02 21:01:33+0200 api       DEBUG    Unsubscribing: 13

Nothing happens after that line. I have to kill it with ctrl+c

Environment

  • OS: MacOS
  • pytr version: 0.1.9

Additional context
Add any other context about the problem here.

@LucEast LucEast added the bug Something isn't working label Apr 2, 2024
@LucEast
Copy link
Author

LucEast commented Apr 3, 2024

It seems like the open connection (subscription) loads lots and lots of data.
Therefore the script ends in a deadlock.
A possible solution would be to subscribe and directly unsubscribe one item at a time.

CleanShot 2024-04-03 at 22 07 08

@CorsiDanilo
Copy link

CorsiDanilo commented May 3, 2024

Description of the bug When I run pytr -v debug portfolio it gets stuck while unsubscribing ID 13 which has ISIN US67066G1040 (Nvidia) for me.

To Reproduce Steps to reproduce the behavior:

  1. Ran the command pytr -v debug portfolio
  2. See error

Expected behavior A clear and concise description of what you expected to happen.

Error log

...
2024-04-02 21:01:33+0200 api       DEBUG    Unsubscribing: 13

Nothing happens after that line. I have to kill it with ctrl+c

Environment

  • OS: MacOS
  • pytr version: 0.1.9

Additional context Add any other context about the problem here.

@LucEast Same problem here, currently I cannot download any data :(
Did you manage to solve it? Even just the export to json?

@cyrilpawelko
Copy link
Contributor

Seems linked to #48
Tested right now, and it does not unsubscribe only for values not on LSX, which is hardcoded in pytr.

@Katzmann1983
Copy link
Collaborator

Katzmann1983 commented May 24, 2024

#65 Should fix this. There are sometimes no information for certain items, e.g. Dividends.

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

4 participants