PSGitHub icon indicating copy to clipboard operation
PSGitHub copied to clipboard

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

Open adilshehzad786 opened this issue 3 years ago • 5 comments

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.

adilshehzad786 avatar Sep 07 '21 11:09 adilshehzad786

Looking into this. Sorry for the delay.

pcgeek86 avatar Jan 06 '22 19:01 pcgeek86

Thanks

adilshehzad786 avatar Jan 06 '22 19:01 adilshehzad786

@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?

pcgeek86 avatar Jan 06 '22 21:01 pcgeek86

Sure

adilshehzad786 avatar Jan 06 '22 21:01 adilshehzad786

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.

pauby avatar Sep 21 '22 17:09 pauby