leetcode-sync icon indicating copy to clipboard operation
leetcode-sync copied to clipboard

Error: Request failed with status code 500

Open yyang2018mel opened this issue 3 years ago • 5 comments

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

yyang2018mel avatar Dec 28 '22 10:12 yyang2018mel

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

image

Suvraneel avatar Jan 04 '23 09:01 Suvraneel

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!

joshcai avatar Jan 05 '23 05:01 joshcai

I had the same problem image

MahmoudAbdullah99 avatar Jan 05 '23 22:01 MahmoudAbdullah99

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?

joshcai avatar Jan 09 '23 07:01 joshcai

Of course, how can I reach you?

MahmoudAbdullah99 avatar Jan 10 '23 16:01 MahmoudAbdullah99