API request failed when trying to get current project because: Internal server error: - status 500
Summary
I am not able to configure GitLab Workflow extension because after configuring token and instanceUrl getting error.
{
"message": "API request failed when trying to get current project because: Internal server error: {\"response\":{\"errors\":[{\"message\":\"Internal server error\"}],\"status\":500},\"request\":{\"query\":\"\\n \\n fragment projectDetails on Project {\\n id\\n name\\n description\\n httpUrlToRepo\\n sshUrlToRepo\\n fullPath\\n webUrl\\n group {\\n id\\n }\\n }\\n\\n query GetProject($projectPath: ID!) {\\n project(fullPath: $projectPath) {\\n ...projectDetails\\n }\\n }\\n\",\"variables\":{\"projectPath\":\"services/storage\"}}}",
"stack": [
"Error: API request failed when trying to get current project because: Internal server error: {\"response\":{\"errors\":[{\"message\":\"Internal server error\"}],\"status\":500},\"request\":{\"query\":\"\\n \\n fragment projectDetails on Project {\\n id\\n name\\n description\\n httpUrlToRepo\\n sshUrlToRepo\\n fullPath\\n webUrl\\n group {\\n id\\n }\\n }\\n\\n query GetProject($projectPath: ID!) {\\n project(fullPath: $projectPath) {\\n ...projectDetails\\n }\\n }\\n\",\"variables\":{\"projectPath\":\"services/storage\"}}}",
"\tat /Users/hitesh/.vscode/extensions/gitlab.gitlab-workflow-3.15.1/out/src/gitlab_service.js:98:19",
"\tat Generator.throw (<anonymous>)",
"\tat rejected (/Users/hitesh/.vscode/extensions/gitlab.gitlab-workflow-3.15.1/out/src/gitlab_service.js:6:65)",
"\tat processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
}
Steps to reproduce
- Install GitLab Workflow extension
- Add
"gitlab.instanceUrl": "https://subdomain.domain.com"
in thesettings.json
- Select
GitLab: Set Personal Access Token
from the command palette - Provide the same value from step 2. as the
Url to GitLab instance
- Paste the PAT created from GitLab UI.
- Click on the GitLab Workflow extension from the extensions panel.
What is the current bug behavior?
Throw error in the Output section.
{
"message": "API request failed when trying to get current project because: Internal server error: {\"response\":{\"errors\":[{\"message\":\"Internal server error\"}],\"status\":500},\"request\":{\"query\":\"\\n \\n fragment projectDetails on Project {\\n id\\n name\\n description\\n httpUrlToRepo\\n sshUrlToRepo\\n fullPath\\n webUrl\\n group {\\n id\\n }\\n }\\n\\n query GetProject($projectPath: ID!) {\\n project(fullPath: $projectPath) {\\n ...projectDetails\\n }\\n }\\n\",\"variables\":{\"projectPath\":\"services/storage\"}}}",
"stack": [
"Error: API request failed when trying to get current project because: Internal server error: {\"response\":{\"errors\":[{\"message\":\"Internal server error\"}],\"status\":500},\"request\":{\"query\":\"\\n \\n fragment projectDetails on Project {\\n id\\n name\\n description\\n httpUrlToRepo\\n sshUrlToRepo\\n fullPath\\n webUrl\\n group {\\n id\\n }\\n }\\n\\n query GetProject($projectPath: ID!) {\\n project(fullPath: $projectPath) {\\n ...projectDetails\\n }\\n }\\n\",\"variables\":{\"projectPath\":\"services/storage\"}}}",
"\tat /Users/hitesh/.vscode/extensions/gitlab.gitlab-workflow-3.15.1/out/src/gitlab_service.js:98:19",
"\tat Generator.throw (<anonymous>)",
"\tat rejected (/Users/hitesh/.vscode/extensions/gitlab.gitlab-workflow-3.15.1/out/src/gitlab_service.js:6:65)",
"\tat processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
}
What is the expected correct behavior?
It should accept the token and show relevant information in ISSUES AND MERGE REQUESTS
& FOR CURRENT BRANCH
sections.