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

NinjaOne API issue with Dell machines under warranty #86

Open
BluebirdTechnology opened this issue Jun 18, 2024 · 1 comment
Open

NinjaOne API issue with Dell machines under warranty #86

BluebirdTechnology opened this issue Jun 18, 2024 · 1 comment

Comments

@BluebirdTechnology
Copy link

BluebirdTechnology commented Jun 18, 2024

I am getting an error with Dell workstations that are still in warranty. It seems that the servers report a warranty end date in the future but different devices are not showing their end date and give me this error:
Get-WarrantyNinja : Failed to update device: { "resultCode": "FAILURE", "errorMessage":
"INVALID_ATTRIBUTE_VALUE", "incidentId": "WEB_MGMT_SERVICE-2a-" }
At C:\Program Files\WindowsPowerShell\Modules\PSWarranty\1.8.0\Public\Update-WarrantyInfo.ps1:114 char:35

  • ... ntyStatus = Get-WarrantyNinja -NinjaURL $NinjaURL -Secretkey $NinjaSe ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-WarrantyNinja
@annoyerjones
Copy link

I am getting same error with some newer Dell devices. I reached out to the Dell API team and they found the following issue, I just don't know where or how to perform the adjustment they mentioned. If anyone has an idea I'm all ears. Below is the Dell response.

The difference in end date for the below service tags are as follows:
CB6CQ73 - "endDate": "2025-11-11T05:59:59.14Z",
9TPQ4Y3 - "endDate": "2024-09-28T04:59:59.000001Z",

It seems like your system is not reading the microseconds .000001 causing this issue. Recommend adjusting the second date format to match the precision of the first date format, it should become readable by the system.

Ex: Truncate the date to "endDate": "2024-09-28T04:59:59.00Z"

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

2 participants