Skip to content

fix: expose ip whitelist errors - #86

Merged
Shedna merged 1 commit into
mainfrom
cursor/platform-sdk-synchronization-f5d4
Aug 4, 2026
Merged

Shedna merged 1 commit into
mainfrom
cursor/platform-sdk-synchronization-f5d4

Conversation

@cursor

@cursor cursor Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Description

The public API can return the stable IP_NOT_WHITELISTED error from every API-key-authenticated v1 endpoint, but the SDK treated it as a generic authentication failure. This adds and exports LinkupIpNotWhitelistedError (plus the prefix-stripped alias), maps the platform error code to it, and covers the mapping with a regression test.

Checklist

  • I have installed prek on this project (for instance with the make install-dev command) before creating any commit, or I have run successfully the make lint command on my changes.
  • I have run successfully the make typecheck test command on my changes.
  • I have updated the README.md if my changes affected it. (Not applicable; no README content changed.)

Validation

  • make lint typecheck test (108 tests passed; pyright reported 0 errors)
Open in Web View Automation 

Co-authored-by: william <william@linkup.so>
@Shedna
Shedna marked this pull request as ready for review August 4, 2026 17:12
@Shedna
Shedna merged commit 8da5590 into main Aug 4, 2026
6 checks passed
@Shedna
Shedna deleted the cursor/platform-sdk-synchronization-f5d4 branch August 4, 2026 17:13
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