CyberSource / cybersource-rest-client-dotnet

.NET client library for the CyberSource REST API
Other
19 stars 44 forks source link

CSharp samples failing from duplicate header #182

Closed fdgit closed 2 months ago

fdgit commented 3 months ago

The csharp samples fail with an exception. For example, if one runs the RetrieveCustomer sample, it fails with:

The headers being returned from test include 3 "Vary" headers, which cause an exception because the headers are placed in a dictionary. (This just started happening - I first noticed it on 8/12/24.) I believe duplicate response headers should be in comma delimited lists in the response, so it seems that the response headers have changed recently.

ralreegorganon commented 3 months ago

I've also encountered this in our usage of this API, around the same time.

fdgit commented 3 months ago

so not just me, thanks. I forked a fix for .net standard, probably same or similar will work for .net I'd expect them to fix it on the service. Testing the client libraries really should be part of changing the web service. https://github.com/fdgit/cybersource-rest-client-dotnetstandard.

wrightsonm commented 3 months ago

We encountered this in the cybersource production environment about a month ago (the issue wasn't present in the test environment at the time...!). I believe they reverted that change. But just in case it reoccurs, we also patched the header bug in our internal fork of the dot net standard repo.

gaubansa commented 2 months ago

Thanks for reporting the issue for duplicate response key in SDK. We have fixed the issue in SDK from version v0.0.1.45 onwards.