Skip to content

Sync JS SDK task error handling with platform API#34

Merged
Shedna merged 1 commit into
mainfrom
cursor/platform-sdk-sync-8475
May 26, 2026
Merged

Sync JS SDK task error handling with platform API#34
Shedna merged 1 commit into
mainfrom
cursor/platform-sdk-sync-8475

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 26, 2026

Summary

  • synchronize JS SDK task-related error handling with the current public platform API
  • add dedicated SDK errors for TASK_NOT_FOUND and TASKS_QUEUE_LIMIT_EXCEEDED
  • map those platform error codes in refineError() and cover them with tests

Drift addressed

  • the platform now returns task-specific error codes for missing tasks and queue saturation
  • the JS SDK was falling back to LinkupUnknownError for those responses instead of exposing reviewable typed errors

Validation

  • npm run build
  • npm run lint
  • npm test
Open in Web View Automation 

Co-authored-by: william <william@linkup.so>
@Shedna Shedna marked this pull request as ready for review May 26, 2026 08:15
@Shedna Shedna merged commit 9a8cb97 into main May 26, 2026
2 checks passed
@Shedna Shedna deleted the cursor/platform-sdk-sync-8475 branch May 26, 2026 08:15
@Shedna
Copy link
Copy Markdown
Contributor

Shedna commented May 26, 2026

🎉 This PR is included in version 3.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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