Skip to content

Fix AI quiz verify error for long questions#10026

Open
aaydinks wants to merge 1 commit into
nilbuild:masterfrom
aaydinks:fix/ai-quiz-question-length-10019
Open

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

Conversation

@aaydinks
Copy link
Copy Markdown

@aaydinks aaydinks commented May 28, 2026

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>
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.

1 participant