Skip to content

fix(dms): use href of prev/next links in searchDmsObjects paging - #261

Merged
LenKlose merged 3 commits into
mainfrom
develop
Oct 12, 2026
Merged

LenKlose merged 3 commits into
mainfrom
develop

Conversation

@LenKlose

Copy link
Copy Markdown
Contributor

Problem

getNextPage() and getPreviousPage() on the result of searchDmsObjects fail
since the dvelopFetch migration:

TypeError: Failed to parse URL from https://<tenant>.d-velop.cloud[object Object]

Cause

The DMS API returns paging links as objects (_links.next = { href: "..." }).
onResponseFactory passed the whole object to dvelopFetch, which expects a
string path. The object was stringified to [object Object] and appended to
systemBaseUri.

Fix

  • Pass _links.prev.href / _links.next.href to dvelopFetch
    (search-dms-objects.ts).
  • Correct the two paging specs to expect the string href.
  • Raise @dvelop-sdk/dms to 2.0.3

@LenKlose
LenKlose merged commit 887c6d9 into main Oct 12, 2026
21 checks passed
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