joshcai / leetcode-sync

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

Error getting info for submission #58

Closed phillip055 closed 2 months ago

phillip055 commented 5 months ago
TypeError: Cannot read properties of null (reading 'toFixed')
    at getInfo (/home/runner/work/_actions/joshcai/leetcode-sync/v1.6/dist/index.js:14581:89)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getInfo (/home/runner/work/_actions/joshcai/leetcode-sync/v1.6/dist/index.js:14609:10)
    at async Object.sync (/home/runner/work/_actions/joshcai/leetcode-sync/v1.6/dist/index.js:14902:18)
    at async main (/home/runner/work/_actions/joshcai/leetcode-sync/v1.6/dist/index.js:19564:3)
Error: TypeError: Cannot read properties of null (reading 'toFixed')

Quick debug it's get getinfo function, probably that the percentiles are of a different type than expected

sriharshamadala commented 3 months ago

I am getting the same error.

[Sun, 26 May 2024 16:36:21 GMT] Syncing 216 submissions...
[Sun, 26 May 2024 16:36:21 GMT] Error fetching submission info, retrying in 1 seconds...
[Sun, 26 May 2024 16:36:23 GMT] Error fetching submission info, retrying in 3 seconds...
[Sun, 26 May 2024 16:36:26 GMT] Error fetching submission info, retrying in 9 seconds...
[Sun, 26 May 2024 16:36:35 GMT] Error fetching submission info, retrying in 27 seconds...
[Sun, 26 May 2024 16:37:02 GMT] Error fetching submission info, retrying in 81 seconds...
[Sun, 26 May 2024 16:38:23 GMT] TypeError: Cannot read properties of null (reading 'toFixed')
    at getInfo (/home/runner/work/_actions/joshcai/leetcode-sync/v1.6/dist/index.js:14581:89)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getInfo (/home/runner/work/_actions/joshcai/leetcode-sync/v1.6/dist/index.js:14609:10)
    at async Object.sync (/home/runner/work/_actions/joshcai/leetcode-sync/v1.6/dist/index.js:14902:18)
    at async main (/home/runner/work/_actions/joshcai/leetcode-sync/v1.6/dist/index.js:195[64](https://github.com/sriharshamadala/Leetcode/actions/runs/9244732283/job/25430371657#step:2:65):3)
Error: TypeError: Cannot read properties of null (reading 'toFixed')
jaspinderkohli commented 2 months ago

@joshcai I think we can close this issue now. Thanks so much!

joshcai commented 2 months ago

Thanks @jaspinderkohli - I made a new release with the change and will close this now. If the issue is still present for anyone, please re-open.