Skip to content

Conversation

@vegeta897
Copy link

My correct solution for 2022 day 25 was failing when submitting through aocrunner. I know it was correct because submitting it manually on the website worked.

I suspect that the problem is that the solution isn't being URI encoded, and since the solution contained equals (=) characters, the answer was not properly received at the API end.

This PR simply wraps the solution in encodeURIComponent() in the body of the POST fetch.

I haven't confirmed that this is the reason it was rejecting my correct answer, but the solution should be URI encoded regardless.

@MartijnKooij
Copy link

Thanks! I had the same issue.

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.

2 participants