Skip to content

Fix AI quiz verify error for long questions#10026

Merged
jcanalesluna merged 1 commit into
nilbuild:masterfrom
aaydinks:fix/ai-quiz-question-length-10019
Jun 25, 2026
Merged

Fix AI quiz verify error for long questions#10026
jcanalesluna merged 1 commit into
nilbuild:masterfrom
aaydinks:fix/ai-quiz-question-length-10019

Conversation

@aaydinks

@aaydinks aaydinks commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Prevent AI quiz answer verification from failing when a generated question exceeds the server-side 500 character limit.
  • Trim the question payload sent to /v1-verify-quiz-answer/:quizSlug to the maximum accepted length.

Fixes #10019

Test plan

  • Open roadmap.sh/ai/quiz and generate a quiz.
  • Verify an answer for a question that previously triggered the 500-char validation error.
  • Confirm verification proceeds without a server error.

Made with Cursor

The verify endpoint rejects questions longer than 500 characters.
Trim the question payload to the server limit to avoid blocking quiz attempts.

Fixes nilbuild#10019

Co-authored-by: Cursor <cursoragent@cursor.com>
@jcanalesluna jcanalesluna merged commit 3262e7a into nilbuild:master Jun 25, 2026
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.

Question length exceeds 500 characters, making it impossible to take the quizzes.

2 participants