Skip to content

Conversation

@rishavmedhi
Copy link

@rishavmedhi rishavmedhi commented Jan 23, 2026

Running the script from master branch was giving following errors quite in the early stages of the script

Initializing...

Go to https://trakt.tv/activate on your web browser and enter the below user code there:

11BC6D0E

After you have authenticated and given permission;come back here to continue.

Waiting for authorization. . Authenticated!
Token:#####################################
Getting history
Completed page 1 of 11
Auth Token has expired.
403 An error occured. Error details: error code: 1010

Added a refresh token logic which would attempt to refresh the token and keep the script ongoing by setting the new token and resuming the task.

After adding refresh token logic

Initializing...

Go to https://trakt.tv/activate on your web browser and enter the below user code there:

C645DFB6

After you have authenticated and given permission;come back here to continue.

Waiting for authorization. . Authenticated!
Token:###########################################
Getting history
Completed page 1 of 11
Auth Token expired, attempting to refresh...

Token refreshed.
Retrying page 2...
Completed page 2 of 11
Completed page 3 of 11
Auth Token expired, attempting to refresh...

Token refreshed.
Retrying page 4...
Completed page 4 of 11
Completed page 5 of 11
.
.
.
.

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

Successfully merging this pull request may close these issues.

1 participant