microsoft / SDCM

Surface Dev Center Manager tool to automate WHQL/Attestation submissions and Shipping Label creation for Microsoft Hardware Dev Center
MIT License
34 stars 17 forks source link

PARTNER_CENTER_HTTP_EXCEPTION #44

Closed kcrazy closed 1 year ago

kcrazy commented 2 years ago

Hello,

cmd:

.\sdcm.exe -c .\product.json

product.json:

{ "createType": "product", "createProduct": { "productName": "ProductName_HLK", "testHarness": "HLK", "selectedProductTypes": { "windows_v100_RS4": "Unclassified" }, "requestedSignatures": [ "WINDOWS_v100_X64_RS4_FULL" ], "announcementDate": "2018-10-02T00:00:00", "deviceType": "external", "deviceMetaDataIds": null, "firmwareVersion": "0", "isTestSign": false, "markettingNames": null, "additionalAttributes": null } }
SurfaceDevCenterManager v1.0.0.1
> Create Option

============================================================
        SurfaceDevCenterManager Exception Log
Option:          CreateOption
Section:         NewProduct
Type:            System.Threading.Tasks.TaskCanceledException
Message:         已取消一个任务。
Correlation Id:  7b9bc257-90be-45a7-8b8c-d98dbc03731e
============================================================

Correlation Id: 7b9bc257-90be-45a7-8b8c-d98dbc03731e
Return: -1000 (PARTNER_CENTER_HTTP_EXCEPTION)
kcrazy commented 2 years ago

after i run Fiddler, it return

SurfaceDevCenterManager v1.0.0.1
> Create Option
ERROR (DevCenterErrorDetails)
Code:    500
HttpCode:500
Message: Internal server error
Correlation Id: 13dfbad3-ea41-4759-9c52-b2385b64a31a
Request Id:     88194189-c77c-4777-a8f2-330814645035
Method:         POST
Url:            https://manage.devcenter.microsoft.com/v2.0/my/hardware/products
Content:        {"productName":"ProductName_HLK","testHarness":"HLK","announcementDate":"2018-10-02T00:00:00","deviceMetadataIds":null,"firmwareVersion":"0","deviceType":"external","isTestSign":false,"isFlightSign":false,"marketingNames":null,"selectedProductTypes":{"windows_v100_RS4":"Unclassified"},"requestedSignatures":["WINDOWS_v100_X64_RS4_FULL"],"additionalAttributes":null,"packageType":null}
Correlation Id: 13dfbad3-ea41-4759-9c52-b2385b64a31a
Return: -7 (NEW_PRODUCT_API_FAILED)
kcrazy commented 2 years ago

did the server hang up?

[
  {
    "clientId": "",
    "key": "",
    "tenantId": "",
    "url": "https://manage.devcenter.microsoft.com",
    "urlPrefix": "v2.0/my"
  }
]
Ben-Carpenter commented 2 years ago

We are not aware of an Partner Center service issues at this time.

@kcrazy, Not sure what you actually sent in your product.json file, but all the values you provided in this ticket are defaults and null (from the example provided in this repo). The HTTP 500 response would be from Partner Center. If you continue to experience an internal server error when sending your driver information in the product.json file, you may need to create a support ticket with them and be sure to reference the Correlation Id.

Be sure you're providing your clientId, tenantId, and key from your side and that your client is registered in your Partner Center account.

kcrazy commented 2 years ago
    "clientId": "",
    "key": "",
    "tenantId": "",

these id and key are correct.

Only when I run the Fiddler program and capture https data, it returns a 500 error, In other cases, PARTNER_CENTER_HTTP_EXCEPTION exception is returned

Ben-Carpenter commented 1 year ago

Issue has been open for three months without further communication. For account issues please reach out to Partner Center. If you feel this issue needs further investigation, feel free to re-open. All the best!