Skip to content

fix: handle fetch target unreachable errors - #47

Merged
Shedna merged 1 commit into
mainfrom
cursor/platform-sdk-sync-20260723-fetch-target-unreachable
Jul 23, 2026
Merged

fix: handle fetch target unreachable errors#47
Shedna merged 1 commit into
mainfrom
cursor/platform-sdk-sync-20260723-fetch-target-unreachable

Conversation

@Shedna

@Shedna Shedna commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Description

The public /v1/fetch API surface now reports a dedicated FETCH_TARGET_UNREACHABLE 400 error code when Linkup cannot reach the target URL.

This PR synchronizes the JS SDK by:

  • adding a dedicated LinkupFetchTargetUnreachableError export,
  • mapping FETCH_TARGET_UNREACHABLE to that error in the client error refinement path,
  • covering the new contract in the fetch error tests.

Validation

  • npm run build
  • npm run lint
  • npm test

Co-authored-by: william <william@linkup.so>
@Shedna
Shedna merged commit 839fe30 into main Jul 23, 2026
2 checks passed
@Shedna
Shedna deleted the cursor/platform-sdk-sync-20260723-fetch-target-unreachable branch July 23, 2026 08:26
@Shedna

Shedna commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 3.2.9 🎉

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