joshcai / leetcode-sync

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

TypeError: response.data.data.submissionList.submissions is not iterable #60

Closed 10622130 closed 5 months ago

10622130 commented 5 months ago

I followed the README.md guide and got this error "TypeError: response.data.data.submissionList.submissions is not iterable", I'm using the latest version of joshcai/leetcode-sync@v1.6.

here is my .yml: name: Sync Leetcode

on: workflow_dispatch: schedule:

samgabel commented 5 months ago

@10622130 make sure you are setting your LEETCODE_CSRF_TOKEN & LEETCODE_SESSION correctly in your github repo secrets. I typically see the error message you described when I either enter in the secrets incorrectly, or enough time has passed where I need to update to a new cookie.

10622130 commented 5 months ago

@samgabel Do I have to replace the ; and the end of LEETCODE_CSRF_TOKEN & LEETCODE_SESSION with " " ? Because I'm pretty sure I have the right token.

e.g. : change
LEETCODE_CSRF_TOKEN =zzzzz; to LEETCODE_CSRF_TOKEN ="zzzzz"

samgabel commented 5 months ago

@10622130 I have not tried it with the semicolon included. I usually enter it in without the semicolon. LEETCODE_CSRF_TOKEN=zzzzz

10622130 commented 5 months ago

it worked, thanks

thomHayner commented 1 month ago

My CSRF Token remained the same but I had to update the LEETCODE_SESSION cookie.

Seems annoying to have to update this constantly. Is anyone aware of a workaround or know of a way to automate this?