joshcai / leetcode-sync

GitHub Action for syncing LeetCode submissions to GitHub
303 stars 61 forks source link

Request failed with Status code 401 #16

Closed aviraltandon21 closed 2 years ago

aviraltandon21 commented 2 years ago

Hi Josh! I have been using Leetcode-sync for past month. And it's great. From few days , my jobs have been failing, I thought maybe it was because my Leetcode csrf token had expired. But when I update the token today and re run the job , it's failing again. I am attaching the screenshot of the error I am encountering. Can you please take a look. failing

Thanks and regards

joshcai commented 2 years ago

Hi @aviraltandon21, hmm could you describe how you updated the token? It does look to be the same error as https://github.com/joshcai/leetcode-sync/issues/7 which is also caused by csrf token expiring. You could also try the chrome extension mentioned here: https://github.com/joshcai/leetcode-sync/issues/7#issuecomment-779557829 which should make it easier to update the variables.

aviraltandon21 commented 2 years ago

Hi @joshcai , I installed the chrome extension and linked it with my repo. But when I am trying to sync ,it is giving me the following error workflow_dispatch

aviraltandon21 commented 2 years ago

SORRY ! My mistake I enabled the workflow and its running now. Thankyou so much for your help !

chienhsiang-hung commented 2 years ago

I had the same issue for quite a few weeks till I found this post and updated the token. lol