pcgeek86 / PSGitHub

This PowerShell module contains commands to manage GitHub through its REST API.
MIT License
182 stars 39 forks source link

A parameter cannot be found that matches parameter name 'FollowRelLink' #63

Open adilshehzad786 opened 2 years ago

adilshehzad786 commented 2 years ago

Before submitting your issue for the PSGitHub project, please take a moment to provide the following details:

Describe the bug The token is Successfully working, but whenever trying to execute the PSGitHub commands, getting the FollowRelLink error .

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See an error

Expected behavior I am execute the following command , through the following command, the issues which are currently opened by the author , will be displayed in the PowerShell.

Find-GitHubIssue "author:adilshehzad786" | Select-Object -First 1

Screenshots If applicable, add screenshots to help explain your problem. image

Environment [X] Version of PowerShell you're using is 5.1.19041.1151 [X] PowerShell host you're using (eg. Console Host, ISE, Visual Studio) : ISE [X] Operating system you're running: Windows 10 [ ] Version of PSGitHub you're using (use Get-Module -Name PSGitHub) : 0.15.212

Thanks for contributing your feedback and support! You can optionally submit a Pull Request against this project, if you have a fix you'd like to share.

pcgeek86 commented 2 years ago

Looking into this. Sorry for the delay.

adilshehzad786 commented 2 years ago

Thanks

pcgeek86 commented 2 years ago

@adilshehzad786 This is the output I'm getting

PS > Find-GitHubIssue "author:adilshehzad786" | Select-Object -First 1
WARNING: The command 'Get-GitHubToken' is obsolete. Tokens should be provided through the -Token parameter or $PSDefaultParameterValues

Number State  User           CreatedAt             Title
------ -----  ----           ---------             -----
     1 closed adilshehzad786 12/23/2021 9:42:16 AM Broken feature

image

Can you try version 0.15.224?

adilshehzad786 commented 2 years ago

Sure

pauby commented 1 year ago

I'm getting this error in Windows PowerShell 5.1 for a different function:

> get-githubrelease -Owner gohugoio -RepositoryName hugo
WARNING: The command 'Get-GitHubToken' is obsolete. Tokens should be provided through the -Token parameter or $PSDefaultParameterValues
Invoke-RestMethod : A parameter cannot be found that matches parameter name 'FollowRelLink'.
At C:\Users\Paul\Documents\WindowsPowerShell\Modules\psgithub\0.15.240\Functions\Private\Invoke-GitHubApi.ps1:105 char:27
+         Invoke-RestMethod @apiRequest -ResponseHeadersVariable respon ...
+                           ~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Invoke-RestMethod], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

No such issue with PowerShell Core so it's a Windows PowerShell issue.