joshcai / leetcode-sync

GitHub Action for syncing LeetCode submissions to GitHub
293 stars 59 forks source link

Error: Request failed with status code 500 #29

Open yyang2018mel opened 1 year ago

yyang2018mel commented 1 year ago

I used to run the action successfully. but recently I always get this error.

[Wed, 28 Dec 2022 10:29:13 GMT] Getting submission from LeetCode, offset 0 [Wed, 28 Dec 2022 10:29:14 GMT] Getting submission from LeetCode, offset 20 [Wed, 28 Dec 2022 10:29:16 GMT] Error fetching submissions, retrying in 1 seconds... [Wed, 28 Dec 2022 10:29:17 GMT] Error fetching submissions, retrying in 3 seconds... [Wed, 28 Dec 2022 10:29:21 GMT] Error fetching submissions, retrying in 9 seconds... [Wed, 28 Dec 2022 10:29:31 GMT] Error fetching submissions, retrying in 27 seconds... [Wed, 28 Dec 2022 10:29:59 GMT] Error fetching submissions, retrying in 81 seconds... [Wed, 28 Dec 2022 10:31:21 GMT] Error: Request failed with status code 500 at createError (/home/runner/work/_actions/joshcai/leetcode-sync/v1.5/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/runner/work/_actions/joshcai/leetcode-sync/v1.5/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/home/runner/work/_actions/joshcai/leetcode-sync/v1.5/node_modules/axios/lib/adapters/http.js:269:11) at IncomingMessage.emit (node:events:402:35) at endReadableNT (node:internal/streams/readable:1343:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) Error: Error: Request failed with status code 500

Suvraneel commented 1 year ago

@joshcai +1 to this I found & tried this out for the 1st time today... Workflow Run here

image

joshcai commented 1 year ago

Thanks for the reports, does look like a bug. Do you know if it fails deterministically with the same offset numbers? I'm wondering if the final fetch is the issue or if it's some kind of flakiness.

I wasn't able to reproduce yet, but I'll try to look at this more over the weekend when I get back home from the holidays. Sorry for the inconvenience!

MahmoudAbdullah99 commented 1 year ago

I had the same problem image

joshcai commented 1 year ago

Hmm I still wasn't able to reproduce this and had a successful run recently, do any of you guys mind sharing info on how to reproduce? e.g. potentially sending your LeetCode credentials privately to see if it's related to the LeetCode account?

MahmoudAbdullah99 commented 1 year ago

Of course, how can I reach you?