Attempting to retrieve file, I get "Authentication failed because the remote party has closed the transport stream"

32 views
Skip to first unread message

John Colbert

unread,
Nov 18, 2025, 6:50:19 PM (10 days ago) Nov 18
to Google's Campaign Manager 360 API Forum
The call is failing from our Dev environment but works from our Prod environment.


Error: 
  • ErrorCode=HttpFileFailedToRead,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Failed to read data from http server. Check the error from http serverThe underlying connection was closed: An unexpected error occurred on a send.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The underlying connection was closed: An unexpected error occurred on a send.,Source=System,''Type=System.IO.IOException,Message=Authentication failed because the remote party has closed the transport stream.,Source=System,'
We can get the fileId from the URL, but we can't return the file itself.

DCM API (DoubleClick Campaign Mgr)

unread,
Nov 19, 2025, 1:47:41 AM (10 days ago) Nov 19
to google-doubleclick-...@googlegroups.com
Hi,

Thank you for reaching out to the CM360 API support team.

To better assist you with your concern, could you please provide us with the necessary details to help us investigate further? Specifically, we would need the following information:

  • DCM Account ID: You can find this under your profile icon in the Campaign Manager 360 UI, or in the Account section under the Admin drop-down.
  • The Profile ID used during the API request.
  • The report ID and file ID.
  • URL endpoint request with the path param values.
  • The complete API JSON request and response logs.

You can send the details via Reply privately to the author option, or direct private reply to this email.

 


Thanks,
 
Google Logo DCM API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-11-19 06:47:35Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vTtKS:ref" (ADR-00340618)



Colbert, John

unread,
Nov 19, 2025, 12:27:27 PM (10 days ago) Nov 19
to DCM API (DoubleClick Campaign Mgr), google-doubleclick-...@googlegroups.com

URL: https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/5708476/reports/1554685695/files/5375891239

 

Here’s the response:

{

    "id": "5375891239",

    "reportId": "1554685695",

    "etag": "\\" 5c1829dac4161e126e403df6e7bdafa01227efb3 \\ "",

    "status": "REPORT_AVAILABLE",

    "fileName": "",

    "kind": "dfareporting#file",

    "dateRange": {

        "startDate": "2025-10-29",

        "endDate": "2025-11-06",

        "kind": "dfareporting#dateRange"

    },

    "format": "CSV",

    "lastModifiedTime": "1762544922000",

    "urls": {

        "browserUrl": https://www.google.com/reporting/downloadFile?id=1554685695:5375891239,

        "apiUrl": https://www.googleapis.com/dfareporting/v4/reports/1554685695/files/5375891239?alt=media

    },

    "ADFHttpStatusCodeInResponse": "200",

    "ADFWebActivityResponseHeaders": {

        "Vary": "X-Origin;Referer;Origin;Accept-Encoding",

        "X-XSS-Protection": "0",

        "X-Frame-Options": "SAMEORIGIN",

        "X-Content-Type-Options": "nosniff",

        "Alt-Svc": "h3=\\": 443 \\ "; ma=2592000,h3-29=\\": 443 \\ "; ma=2592000",

        "Transfer-Encoding": "chunked",

        "Accept-Ranges": "none",

        "Date": "Fri, 14 Nov 2025 15:43:06 GMT",

        "Server": "ESF",

        "Content-Disposition": "attachment",

        "Content-Type": "application/json; charset=UTF-8"

    },

    "effectiveIntegrationRuntime": "AutoResolveIntegrationRuntime (West US 2)",

    "executionDuration": 0,

    "durationInQueue": {

        "integrationRuntimeQueue": 0

    },

    "billingReference": {

        "activityType": "ExternalActivity",

        "billableDuration": [{

                "meterType": "AzureIR",

                "duration": 0.016666666666666666,

                "unit": "Hours"

            }

        ]

    }

}

 

John Colbert

Principal Engineer, Software

 

From: 'DCM API (DoubleClick Campaign Mgr)' via Google's Campaign Manager 360 API Forum <google-doubleclick-...@googlegroups.com>
Sent: Tuesday, November 18, 2025 10:48 PM
To: google-doubleclick-...@googlegroups.com
Subject: RE: attempting to retrieve file, i get "authentication failed because the remote party has closed the transport stream"

 

[External]

 

--
You received this message because you are subscribed to the Google Groups "Google's Campaign Manager 360 API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-doubleclick-for-ad...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-doubleclick-for-advertisers-api/du33u000000000000000000000000000000000000000000000T5YO7B0069sA0upLSASa0iLYtWxrkA%40sfdc.net.

Colbert, John

unread,
Nov 19, 2025, 12:37:09 PM (10 days ago) Nov 19
to Colbert, John, DCM API (DoubleClick Campaign Mgr), google-doubleclick-...@googlegroups.com

Here’s the Prod equivalent:

 

URL: https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/5708476/reports/1561758641/files/5393894131

 

{

              "id": "5393894131",

              "reportId": "1561758641",

              "etag": "\"34e84adb0e1465b5508391e4b1fad63181017f9f\"",

              "status": "REPORT_AVAILABLE",

              "fileName": "",

              "kind": "dfareporting#file",

              "dateRange": {

                             "startDate": "2025-11-10",

                             "endDate": "2025-11-18",

                             "kind": "dfareporting#dateRange"

              },

              "format": "CSV",

              "lastModifiedTime": "1763560911000",

              "urls": {

                             "browserUrl": https://www.google.com/reporting/downloadFile?id=1561758641:5393894131,

                             "apiUrl": https://www.googleapis.com/dfareporting/v4/reports/1561758641/files/5393894131?alt=media

              },

              "ADFHttpStatusCodeInResponse": "200",

              "ADFWebActivityResponseHeaders": {

                             "Vary": "X-Origin;Referer;Origin;Accept-Encoding",

                             "X-XSS-Protection": "0",

                             "X-Frame-Options": "SAMEORIGIN",

                             "X-Content-Type-Options": "nosniff",

                             "Alt-Svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",

                             "Transfer-Encoding": "chunked",

                             "Accept-Ranges": "none",

                             "Date": "Wed, 19 Nov 2025 14:35:42 GMT",

                             "Server": "ESF",

                             "Content-Disposition": "attachment",

                             "Content-Type": "application/json; charset=UTF-8"

              },

              "effectiveIntegrationRuntime": "AutoResolveIntegrationRuntime (West US 2)",

              "executionDuration": 0,

              "durationInQueue": {

                             "integrationRuntimeQueue": 0

              },

              "billingReference": {

                             "activityType": "ExternalActivity",

                             "billableDuration": [

                                           {

                                                          "meterType": "AzureIR",

                                                          "duration": 0.016666666666666666,

                                                          "unit": "Hours"

                                           }

                             ]

              }

}

 

John Colbert

Principal Engineer, Software

 

From: 'Colbert, John' via Google's Campaign Manager 360 API Forum <google-doubleclick-...@googlegroups.com>

Sent: Wednesday, November 19, 2025 9:23 AM
To: DCM API (DoubleClick Campaign Mgr) <dcm...@forumsupport.google>; google-doubleclick-...@googlegroups.com
Subject: RE: attempting to retrieve file, i get "authentication failed because the remote party has closed the transport stream"

Sensitivity: Confidential

 

[External]

 

--
You received this message because you are subscribed to a topic in the Google Groups "Google's Campaign Manager 360 API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-doubleclick-for-advertisers-api/YjPihsKvYO4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-doubleclick-for-ad...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-doubleclick-for-advertisers-api/BN0SPR01MB0005270724D23CB37FB70DA995D7A%40BN0SPR01MB0005.namprd02.prod.outlook.com.

John Colbert

unread,
Nov 19, 2025, 1:03:37 PM (10 days ago) Nov 19
to Google's Campaign Manager 360 API Forum
The Dev versions fails, the Prod version works.

DCM API (DoubleClick Campaign Mgr)

unread,
Nov 19, 2025, 6:39:08 PM (9 days ago) Nov 19
to google-doubleclick-...@googlegroups.com
Hi,

Please note that we can only assist with technical issues or concerns related to the CM360 API.

Upon reviewing the error message, it appears to be client library specific. We recommend you to contact the developer's specialist support team and raise your concern in the GitHub issue tracker, as they are better equipped to address this issue. Regarding "authentication failed," we recommend referring to the Authorizing requests with OAuth 2.0 documentation for more information.


Thanks,
 
Google Logo DCM API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-11-19 23:39:00Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vTtKS:ref" (ADR-00340618)



Reply all
Reply to author
Forward
0 new messages