ngetchell / PSGitLab

An interface for administering GitLab from the PowerShell command line.
MIT License
72 stars 42 forks source link

Error running set-GitLabProjectWebHook #214

Open lasakura opened 5 years ago

lasakura commented 5 years ago

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

5. Possible Solution

[comment] Have a solution in mind?

6. Context

I might be doing something wrong?