Skip to content

Conversation

@nirav-v
Copy link

@nirav-v nirav-v commented Mar 2, 2025

I ran into an issue where the github action stopped working after some time and was giving me this error:

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

After debugging, the cause was that my leetcode session had expired causing the submissions to be null. I have added a check against this case that will show an error message instead attempting to iterate over null submissions. Workflow should now show a message telling the user their session may have expired if no submissions are being returned from the leetcode api, rather than throwing the previous type error.

…e session variable has expired. Provides helpful message instead of throwing type error on next line
@nirav-v nirav-v changed the title handle expired leetcode session case handle expired leetcode session error Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant