amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
580 stars 730 forks source link

C# Feeds API SDK - UploadFeedData throws Exception #507

Closed MRossNexJen closed 3 months ago

MRossNexJen commented 7 months ago

Discussed in https://github.com/amzn/selling-partner-api-docs/discussions/3569

Originally posted by **MRossNexJen** February 2, 2024 I'm using the swagger-generated C# Feeds API SDK. FeedType: POST_ORDER_FULFILLMENT_DATA I call FeedsApi.CreateFeedDocument successfully, but when my code then calls UploadFeedData, it returns the following error: "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel." An example URL: https://tortuga-prod-na.s3-external-1.amazonaws.com/8a35c678-dd75-45b7-a449-a636e3867c34.amzn1.tortuga.4.na.T1KLY91WAGMPSE?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240202T102635Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=300&X-Amz-Credential=AKIA5U6MO6RANYTMPKWM%2F20240202%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=e02b0cde5a688583e95b709328097d570eb6b6769a25eb2c03679ba2a555274e Content Type that I'm setting: text/xml; charset=UTF-8 I'm setting the TLS version as follows: System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; Any help with this is appreciated.
harguph commented 3 months ago

Hello @MRossNexJen ,

From the error, it seems to be a generic network related error and not with the SP-API. Also, tried to access the link and got expired error (which is to be expected and not SSL error).

Please re-generate a link and try again using a different client/network.

If the issue persists, consider upgrading your client libraries.

Regards