<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error on Report Download API in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-on-Report-Download-API/m-p/89734#M56543</link>
    <description>&lt;P&gt;The error arises because rest Response. Headers contains duplicate&amp;nbsp; Vary keys. You can handle this by modifying the code to handle duplicate keys, or by filtering the headers to ensure each key is unique before creating the ApiResponse&amp;nbsp; object.&lt;/P&gt;</description>
    <pubDate>Sat, 20 Jul 2024 07:16:07 GMT</pubDate>
    <dc:creator>whitesmaverick</dc:creator>
    <dc:date>2024-07-20T07:16:07Z</dc:date>
    <item>
      <title>Error on Report Download API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-on-Report-Download-API/m-p/89705#M56534</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I found error on CyberSource.Api.ReportDownloadAPI-&amp;nbsp;DownloadReportAsyncWithHttpInfo. I'm using package&amp;nbsp;CyberSource.Rest.Client.NetStandard. Whenever I call that method with all required and valid configurations, i got error&amp;nbsp;"An item with the same key has already been added. Key: Vary''. After debugging sometime i came to know that error is on this line=&lt;BR /&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;return new ApiResponse&amp;lt;object&amp;gt;(statusCode, restResponse.Headers.ToDictionary((HeaderParameter x) =&amp;gt; x.Name, (HeaderParameter x) =&amp;gt; x.Value.ToString()), restResponse.Content);.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;On this&amp;nbsp;&lt;EM&gt;restResponse.Headers there're 2 vary key which is causing error.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Pramesh KC&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Jul 2024 01:38:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-on-Report-Download-API/m-p/89705#M56534</guid>
      <dc:creator>pkc</dc:creator>
      <dc:date>2024-07-16T01:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error on Report Download API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-on-Report-Download-API/m-p/89734#M56543</link>
      <description>&lt;P&gt;The error arises because rest Response. Headers contains duplicate&amp;nbsp; Vary keys. You can handle this by modifying the code to handle duplicate keys, or by filtering the headers to ensure each key is unique before creating the ApiResponse&amp;nbsp; object.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2024 07:16:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-on-Report-Download-API/m-p/89734#M56543</guid>
      <dc:creator>whitesmaverick</dc:creator>
      <dc:date>2024-07-20T07:16:07Z</dc:date>
    </item>
  </channel>
</rss>

