Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Error running set-GitLabProjectWebHook #214

Open
lasakura opened this issue Nov 12, 2019 · 0 comments
Open

Error running set-GitLabProjectWebHook #214

lasakura opened this issue Nov 12, 2019 · 0 comments

Comments

@lasakura
Copy link

1. Provide a general summary of the issue in the Title above

2. Describe Your Environment

Windows 10
PSVersion 5.1.17134.765
PSGitLab - 3.0.1

3. Expected Behavior

[comment] Trying to add a new webhook for Jira into an existing project using a token/user that has both sudo and api access in GitLab. I expect a new webhook to be created.

4.Current Behavior

When running the set-gitlabprojectwebhook, I get the following error inline below

Set-GitLabProjectWebhook -Id $r_id -URL $jirahook -hook_id $h_id -push_events -merge_requests_events -enable_ssl_verification -note_events -token "$tokenID"

_Name Value


url https://xxxxx/rest/gitplugin/webhook/1.0/reindex/xxxxxx
id 416
push_events True
Token gsLy-xXeCinen_Dz7zLW
enable_ssl_verification True
hook_id 32
note_events True
merge_requests_events True
QueryGitLabAPI : -
At C:\Program Files\WindowsPowerShell\Modules\PSGitLab\3.0.1\PSGitLab.psm1:2342 char:5

  • QueryGitLabAPI -Request $Request -ObjectType 'GitLab.Project.Webh ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,QueryGitLabAPI

5. Possible Solution

[comment] Have a solution in mind?

6. Context

I might be doing something wrong?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant