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

ChunkedEncodingError While extracting the data #54

Open
Laxman-Lakhan opened this issue Nov 22, 2022 · 0 comments
Open

ChunkedEncodingError While extracting the data #54

Laxman-Lakhan opened this issue Nov 22, 2022 · 0 comments

Comments

@Laxman-Lakhan
Copy link

  • berserk version: 0.10.0
  • Python version: 3.9.13
  • Operating System: MacOS

Description

I am extracting my chess games with this code for over a year, but just 2 hours ago I got this error.

What I Did

token = os.environ.get('TOKEN')
session = berserk.TokenSession(token)
client = berserk.Client(session=session)
extract = client.games.export_by_player('YourKingIsInDanger',
            as_pgn=False, since=None, until=None, max=None, vs=None, rated=True, 
            perf_type=None, color=None, analysed=None, moves=True, tags=True, 
            evals=False, opening=True)
data = list(extract)

ValueError: invalid literal for int() with base 16: b''
During handling of the above exception, another exception occurred:

InvalidChunkLength: InvalidChunkLength(got length b'', 0 bytes read)
During handling of the above exception, another exception occurred:

ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
During handling of the above exception, another exception occurred:

ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant