-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Bug Report: GitLab Org Data Integration Error #27955
Comments
Hi @froyo-saif, what Backstage version are you using and what's the error message? |
Hello @camilaibs, [1] 2024-12-06T06:27:04.541Z catalog error GitlabOrgDiscoveryEntityProvider:yourProviderId refresh failed, Error: GraphQL errors: [{"message":"Unexpected end of document","locations":[]}] GraphQL errors: [{"message":"Unexpected end of document","locations":[]}] target=GitlabOrgDiscoveryEntityProvider:yourProviderId class=GitlabOrgDiscoveryEntityProvider taskId=GitlabOrgDiscoveryEntityProvider:yourProviderId:refresh taskInstanceId=a9215320-1a21-4613-b1fb-d58e8b63f29c stack=Error: GraphQL errors: [{"message":"Unexpected end of document","locations":[]}]
[1] at GitLabClient.listDescendantGroups (C:\Users\SKH9QP\Downloads\newdevportal\scania-dev-portal\node_modules\@backstage\plugin-catalog-backend-module-gitlab\src\lib\client.ts:213:15)
[1] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[1] at GitlabOrgDiscoveryEntityProvider.refresh (C:\Users\SKH9QP\Downloads\newdevportal\scania-dev-portal\node_modules\@backstage\plugin-catalog-backend-module-gitlab\src\providers\GitlabOrgDiscoveryEntityProvider.ts:367:17)
[1] at Object.fn (C:\Users\SKH9QP\Downloads\newdevportal\scania-dev-portal\node_modules\@backstage\plugin-catalog-backend-module-gitlab\src\providers\GitlabOrgDiscoveryEntityProvider.ts:342:19)
[1] at <anonymous> (C:\Users\SKH9QP\Downloads\newdevportal\scania-dev-portal\node_modules\@backstage\backend-defaults\src\entrypoints\scheduler\lib\PluginTaskSchedulerImpl.ts:154:19)
[1] at TaskWorker.fn (C:\Users\SKH9QP\Downloads\newdevportal\scania-dev-portal\node_modules\@backstage\backend-defaults\src\entrypoints\scheduler\lib\PluginTaskSchedulerImpl.ts:151:9)
[1] at TaskWorker.runOnce (C:\Users\SKH9QP\Downloads\newdevportal\scania-dev-portal\node_modules\@backstage\backend-defaults\src\entrypoints\scheduler\lib\TaskWorker.ts:156:13)
[1] at <anonymous> (C:\Users\SKH9QP\Downloads\newdevportal\scania-dev-portal\node_modules\@backstage\backend-defaults\src\entrypoints\scheduler\lib\TaskWorker.ts:76:31) |
Hi @froyo-saif, this is a community-maintained module, let me loop in one of the module authors (@elaine-mattos ) to see if she can help you 🙂 . |
Hey @camilaibs thank you for the support |
Hi @froyo-saif , I'll take a look at it later today. Meanwhile, could you please provide the configuration in your app-config .yaml file? |
Hello @elaine-mattos `app: organization: backend: integrations: gitlab: proxy: techdocs: auth: scaffolder: catalog: locations: logging: ` |
And there is one more issue regarding groups [1] 2024-12-10T06:44:08.248Z catalog info Scanned 3413 groups and processed 0 groups target=GitlabOrgDiscoveryEntityProvider:yourProviderId class=GitlabOrgDiscoveryEntityProvider taskId=GitlabOrgDiscoveryEntityProvider:yourProviderId:refresh taskInstanceId=f26a2bee-f116-487c-9b63-9e1ab2b5ba00 |
Hi @froyo-saif , To answer your question, no the plugin doesn't require a
The error you see comes from the GitLab Group.groupMembers GraphQL query. You can see the query's documentation here: https://docs.gitlab.com/ee/api/graphql/reference/#groupgroupmembers.
Could you give it a try and let us know if you see the users being returned? |
I tried to run the query and got this as output as you said Added descendants to relations too and got the users with blocked and deactivated |
Hi @froyo-saif , thanks! Could you please try running this one and see if you get the descendant groups back?
|
Now I dont get any users as earlier it was but now groups are visible |
Any update @elaine-mattos |
📜 Description
I am trying to use the GitLab Org data and need to understand about a group:
As I have integrated self hosted internal GitLab instance, it is throwing an
GRAPHQL
error while fetching. It is finding everything but throwing the error.Please help.
👍 Expected behavior
No response
👎 Actual Behavior with Screenshots
No response
👟 Reproduction steps
No response
Provide the context for the Bug.
No response
🖥️ Your Environment
No response
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Code of Conduct?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: