Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-WikiMethod splat error #51

Closed
brianbunke opened this issue May 23, 2017 · 3 comments
Closed

Invoke-WikiMethod splat error #51

brianbunke opened this issue May 23, 2017 · 3 comments

Comments

@brianbunke
Copy link
Collaborator

Taking the 2.0 develop branch for a test drive.

https://github.com/brianbunke/ConfluencePS/blob/d7c9adfd9dec99f03a03097e020c5ca077ff236a/ConfluencePS/Private/Invoke-WikiMethod.ps1#L161

Expected Behavior

No error expected.

Current Behavior

Invoke-WikiMethod : A parameter cannot be found that matches parameter name 'GetSystem.Collections.Hashtable'.
[...]
\Private\Invoke-WikiMethod.ps1:164 char:41
$result.results += (Invoke-WikiMethod @parameters)

Steps to Reproduce (for bugs)

Set-WikiInfo -BaseURi 'https://wiki.example.com' -PromptCredentials -PageSize 3
Get-WikiSpace
# Same error occurs above and below
Get-WikiPage

Your Environment

  • Operating System and PowerShell version: Win10 / 5.1.14393.1198
  • ConfluencePS version: 2.0 develop
@brianbunke brianbunke added this to the v2.0 milestone May 23, 2017
@lipkau lipkau self-assigned this Jun 5, 2017
@lipkau
Copy link
Member

lipkau commented Jun 5, 2017

How many pages should have been returned?

@brianbunke
Copy link
Collaborator Author

Sorry, I didn't copy the output. It gives me that error before I see the expected results.

In other words, it's actually working, just with some extra red text courtesy of Invoke-WikiMethod.

@lipkau
Copy link
Member

lipkau commented Jun 10, 2017

This must definitely be tested when we introduce Unit Tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Reported Bugs
  
Done
Development

No branches or pull requests

2 participants