APIs & Integrations

Resanehlab
参加者

Need more details on Ecommerce sync error message

Hi,

 

I'm using the E-commerce bridge sync messages to sync the data from my platform to HubSpot but sometimes the details for sync errors are incomplete and I can't figure out what's wrong. I think there is a length limitation on error details characters. Anyway, my question is how can I get the full error message. Is there any other endpoint for that? As an example, I send a request and response here: 

Request: https://api.hubapi.com/extensions/ecomm/v2/sync/status/nop_hs_Store_2936093d-23f3-40f7-b5ae-7d2cfeff...

 

Response:

{
    "storeId""nop_hs_Store_2936093d-23f3-40f7-b5ae-7d2cfeffe6fa",
    "objectType""PRODUCT",
    "externalObjectId""nop_hs_ProductAttributeCombination_9059ecd7-ca15-4204-81ed-76712f8c1b67",
    "hubspotId"518775033,
    "lastProcessedAt"1609769133795,
    "errors": [
        {
            "portalId"8006861,
            "storeId""nop_hs_Store_2936093d-23f3-40f7-b5ae-7d2cfeffe6fa",
            "objectType""PRODUCT",
            "externalObjectId""nop_hs_ProductAttributeCombination_9059ecd7-ca15-4204-81ed-76712f8c1b67",
            "changedAt"1609765218423,
            "erroredAt"1609765227947,
            "type""UNKNOWN_ERROR",
            "details""Error performing[CREATE] PRODUCT[nop_hs_Store_2936093d-23f3-40f7-b5ae-7d2cfeffe6fa__nop_hs_ProductAttributeCombination_9059ecd7-ca15-4204-81ed-76712f8c1b67] for portal 8006861, error was [8006861] create failed - java.util.concurrent.CompletionException: com.hubspot.apicaller.exceptions.ApiErrorResponseException: Api[name=inbounddbproducts, subPath=/inbounddbproducts/v1/products/] Failed to process your request. Error code was '400'. Error message was:\n{\"status\":\"error\",\"message\":\"Cannot set PropertyValueCoordinates{portalId=8006861, objectTypeId=ObjectTypeId{legacyObjectType=PRODUCT}, propert",
            "status""OPEN"
        }
    ]
}
 
Thanks in advance.
0 いいね!
6件の返信
Resanehlab
参加者

Need more details on Ecommerce sync error message

Sounds great. Thanks for the help.

 

Best,

Ali

Resanehlab
参加者

Need more details on Ecommerce sync error message

Any update on this?

0 いいね!
dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Need more details on Ecommerce sync error message

I reached out in a direct message.  Will add answer to issue here once resolved for full visibility 😀

0 いいね!
dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Need more details on Ecommerce sync error message

Hello @Resanehlab 

You specific problem was you were trying to create a product with SKU AD_C80_RS, but a product with that SKU already exists in the HubSpot account and we don't allow 2 different products to have the same SKU value.

 

The resolution from the team regarding the more general question of error messaging length:

The error message is limited to 1024 characters, so stop very large error messages having a detrimental impact on the system, and this limit is not one we are likely to change in the future.

However, much of the beginning of the error messages contained useless information: java.util.concurrent.CompletionException: com.hubspot.apicaller.exceptions.ApiErrorResponseException: Api[name=inbounddbproducts, subPath=/inbounddbproducts/v1/products/] Failed to process your request. Error code was '400. We have made changes to remove this less useful information, so developers should see error messages that are more useful from now on.

 

Hope  this helps.  Thanks for reporting it!

dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Need more details on Ecommerce sync error message

0 いいね!
Resanehlab
参加者

Need more details on Ecommerce sync error message

Hi,

Yes, already tried, same response.

0 いいね!