diff --git a/backstage-plugins/plugins/aws-apps-backend/src/api/aws-platform.ts b/backstage-plugins/plugins/aws-apps-backend/src/api/aws-platform.ts index e613d607..410502dd 100644 --- a/backstage-plugins/plugins/aws-apps-backend/src/api/aws-platform.ts +++ b/backstage-plugins/plugins/aws-apps-backend/src/api/aws-platform.ts @@ -437,7 +437,7 @@ export class AwsAppsPlatformApi { if (this.gitProvider===GitProviders.GITLAB) { - resultBody = await result.value.json(); + resultBody = result.value; } else if (this.gitProvider===GitProviders.GITHUB) { diff --git a/backstage-plugins/plugins/aws-apps-backend/src/api/gitlab-api.ts b/backstage-plugins/plugins/aws-apps-backend/src/api/gitlab-api.ts index 98031283..dabb7de6 100644 --- a/backstage-plugins/plugins/aws-apps-backend/src/api/gitlab-api.ts +++ b/backstage-plugins/plugins/aws-apps-backend/src/api/gitlab-api.ts @@ -24,7 +24,7 @@ export class GitLabAPI implements ISCMBackendAPI { } else { - groupName="" + groupName=gitProjectGroup repoName = gitRepoName; } const url = `https://${gitHost}/api/v4/projects?search=${repoName}`; @@ -156,7 +156,7 @@ export class GitLabAPI implements ISCMBackendAPI { isSuccuess: true, message: `Retrieved file content successfully`, httpResponse : result.status, - value:resultBody.content + value: Buffer.from(resultBody.content, 'base64').toString() }; } }