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

I try to use this for test, its failing #2

Open
jaipsharma opened this issue Dec 24, 2020 · 0 comments
Open

I try to use this for test, its failing #2

jaipsharma opened this issue Dec 24, 2020 · 0 comments

Comments

@jaipsharma
Copy link

Install-Module -Name DellWarranty

Successful

$PSDefaultParameterValues = @{'Get-DellWarranty:APIKey'='abcdefg123456789abcdefgh12345678'}

After this if I run below with key or supply the TAG

DellWarranty FXPX7Q2

DellWarranty : Unable to connect to Dell warranty API URI 'https://api.dell.com/support/assetinfo/
v4/getassetwarranty/FXPX7Q2?apikey=abcdefg123456789abcdefgh12345678' - The remote server returned
an error: (401) Unauthorized.
At line:1 char:1

  • DellWarranty FXPX7Q2
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-DellWarranty
    
    
    

Seems API key is failing, do you have any working API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant