Skip to content

Bitbucket-Server Sync fails on CE >= 9.9.0 #712

@hauerhan

Description

@hauerhan

Bug Description:

The repository sync with Bitbucket Server fails with the following error message (truncated in the logs):

"err":{"message":"Expected values which are `URL` or `undefined`. Received values of type `string`.","stack":"TypeError: Expected values which are `URL` or `undefined`. Received values of type `string`.\n    at Object.assertAny [as any] (file:///usr/src/mend/node_modules/@sindresorhus/is/distribution/index.js:838:15)\n    at Function.paginateEach [as paginate] (file:///usr/src/mend/node_modules/got/dist/source/create.js:142:24)\n    at paginateEach.next (<anonymous>)\n    at Si (file:///usr/src/mend/src/community.js:5:22741)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.allInstallationsWithRepositories (file:///usr/src/mend/src/community.js:5:24353)\n    at async Ur (file:///usr/src/mend/src/community.js:1:43564)\n    at async file:///usr/src/mend/src/community.js:5:88071\n    at async file:///usr/src/mend...

This prevents new repositories from being added (and presumably old ones from being removed)

Details:

This occurs in Renovate CE starting with Version 9.9.0, including the latest 9.10.1.
It does not occur in CE 9.8.0 It does not occur in Renovate CLI versions used in those CE releases.
Tasks other than sycning (running jobs against existing onboarded repositories, opening PRs) do not seem to be affected.

We're using an older version of Bitbucket Server that might not be supported, but I'm not sure whether the error is due to API differences or occurs on more recent versions as well.

Bitbucket-related helm chart values:

mendRnvPlatform: "bitbucket-server"
mendRnvEndpoint: "https://<redacted-url-to-bitbucket>/"

I've also set ignorePrAuthor: true as a workaround for errors possibly related to API-differences. If someone can pinpoint which API call causes this error (or whether this is occurs during the response parsing instead of being related to the Renovate configuration e.g. missing values) I can check whether this might be version-related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions