Amazon-SP-API-CSharp icon indicating copy to clipboard operation
Amazon-SP-API-CSharp copied to clipboard

Something went wrong on deserialize report stream

Open bodamithun opened this issue 2 years ago • 5 comments

Hello,

I am getting an exception "Something went wrong on deserialize report stream" when I call GetFeedDocumentProcessingReport or GetFeedDocumentProcessingReportAsync.

Can somebody please guide me as to what could be causing this.

Thanks

bodamithun avatar Mar 17 '23 22:03 bodamithun

Maybe no data return , what the status us get from amazon ?

abuzuhri avatar Mar 17 '23 23:03 abuzuhri

Looking at the code, GetFeedDocumentProcessingReportAsync can only handle XML files being returned. AFAIK if you submit a flat file (txt format) then a TXT report is returned.

shoecake avatar Jul 12 '23 13:07 shoecake

JSON_LISTINGS_FEED returns processing report as json. FeedService.GetFeedDocumentProcessingReportAsync it fail to serialize that

vasRK avatar Jul 16 '24 17:07 vasRK

POST_INVENTORY_AVAILABILITY_DATA using xml deprecating March 2025, replacing with JSON_LISTINGS_FEED using json and return Feed.GetFeedDocumentProcessingReport still failing deserialization.

Follow up: Reviewing the GetFeedDocumentProcessingReport, it only expects/de-serializes XML and not JSON, and this is where the above initial "Something went wrong..." message is thrown from. Found that since obtained URL w/payload, was able to de-serialize with JSON once handling that the content is compressed with GZIP.

MattH1720 avatar Sep 11 '24 13:09 MattH1720

@bodamithun

I have opened a PR to add a method that can be used to parse the JSON_LISTINGS_FEED result.

My PR also includes in the README and in FeedsSample.cs an example of how to submit a price change using the JSON_LISTINGS_FEED.

huntmj01 avatar Oct 18 '24 13:10 huntmj01