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

encoding problem from gitlab.com #226

Open
rhysjtevans opened this issue Jun 5, 2020 · 2 comments
Open

encoding problem from gitlab.com #226

rhysjtevans opened this issue Jun 5, 2020 · 2 comments

Comments

@rhysjtevans
Copy link

Hi Nicholas,
Love the module, have used it quite a few times now.
First time I'm using it against gitlab.com rather than self-hosted instances and now I get below.

Cannot convert value "Х" to type "System.Byte". Error: "Value was either too large or too small | for an unsigned byte."

What's the problem you're trying to solve converting the response to bytes then back to UTF8 that the Invoke-WebRequest can't do already on line L62.

If I read the code correctly you seem to be encoding it on the first initial request but not on subsequent further page requests then just appending to the Results collection on line L72.

Would you be open to a PR to remove that encoding on below line? or have you seen this before?

@rhysjtevans
Copy link
Author

ok perhaps false alarm, looking into it further. I've used the powershell container image docker pull mcr.microsoft.com/powershell and it seems to work.

If you've have any ideas do please let me know, would still be good to get your thoughts on the encoding stuff though

@rhysjtevans
Copy link
Author

rhysjtevans commented Jun 5, 2020

Narrowed it down to some weird publicly visible projects on gitlab.com, that had non standard characters.

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