itglue / powershellwrapper

This PowerShell module acts as a wrapper for the IT Glue API.
Apache License 2.0
120 stars 51 forks source link

All commands get "Specified value has invalid Control characters." error #141

Closed mrobinson-ws closed 2 years ago

mrobinson-ws commented 2 years ago

Steps to reproduce

Installed Module, added API key, exported settings, ran Get-ITGlueOrganizations, received error. Tried Get-ITGlueConfigurations, same error. All functions have same error.

Expected behavior

Pull data as I am trying to update multiple organizations and am in the learning/testing phase.

Actual behavior

Error as listed.

Screenshots

image

Environment

Please share additional details about your environment. Version information for:

Absoblogginlutely commented 2 years ago

Not sure if this screenshot is edited, but you will need to add-itgluebaseuri to point to your instance. Also, the api key you need to enter is more than one character that is shown on your screenshot Reproducing the issue per your screenshot gives a different error for me which states access forbidden (as expected)

mrobinson-ws commented 2 years ago

1) The BaseURI is default, https://api.itglue.com which it automatically added when I added the API key, with no change I saw no reason to run the command.

2) I am unsure why it only shows one character, it's pasted in, but I did notice on my personal PC that it shows all the characters as asterisks instead, and I get no errors. I will attempt again soon. Thanks.

Absoblogginlutely commented 2 years ago
  1. Good point :-)
  2. I've had this happen before when copying a password from ITGlue (ironically enough) fails to actually copy so the clipboard doesn't have accurate content when I paste into the website. Although typically it (seems to be) blank rather than one character.
mrobinson-ws commented 2 years ago

That did it, thanks!