Skip to content

[PAI-2142] fix: name the field errors in a v2 error's message - #85

Merged
akhil-vamshi-konam merged 1 commit into
release-0.3.3from
fix/pai-2142-v2-error-field-messages
Nov 18, 2026
Merged

akhil-vamshi-konam merged 1 commit into
release-0.3.3from
fix/pai-2142-v2-error-field-messages

Conversation

@akhil-vamshi-konam

Copy link
Copy Markdown
Contributor

What

  • Was: every v2 refusal read only HTTP 400 invalid_request: One or more fields failed validation.; the reason sat in PlaneAPIError.errors, which callers such as the Plane MCP server never print.
  • Now: the message ends with the field messages, e.g. ... One or more fields failed validation. (error: Workspace guests can only be assigned commenter or guest roles on projects).
  • errors, status_code and code are unchanged.

Where to look

  1. 🔴 plane/api/v2/_kernel/errors.py — message assembly
  2. ⚪ tests/v2/test_errors.py — 2 tests

Proof

Important

Confidence: High — unit tests plus live refusals read through the Plane MCP server

  • Ran: pytest tests/v2: pass; ruff check, black --check: clean. Live: guest-to-admin and last-admin refusals through the MCP member tool now show the reason
  • Not verified: None

Rollout

  • None. Code that matches the exact old message text sees a longer string.

Links

  • Work item: PAI-2142

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 41799072-2c07-461e-b9be-bbe462c48f47

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@makeplane

makeplane Bot commented Nov 18, 2026

Copy link
Copy Markdown

Linked to Plane Work Item(s)

This comment was auto-generated by Plane

@akhil-vamshi-konam
akhil-vamshi-konam force-pushed the fix/pai-2142-v2-error-field-messages branch from 7c85698 to cc557a8 Compare November 18, 2026 14:26
@akhil-vamshi-konam
akhil-vamshi-konam changed the base branch from main to release-0.3.3 November 18, 2026 14:28
@akhil-vamshi-konam
akhil-vamshi-konam merged commit ccf1ff4 into release-0.3.3 Nov 18, 2026
5 checks passed
@akhil-vamshi-konam
akhil-vamshi-konam deleted the fix/pai-2142-v2-error-field-messages branch November 18, 2026 14:28
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