Hello,
When attempting this call:
ReportDownloadResponse response =
new ReportDownloader(session).downloadReport(reportDefinition);
We are met with this error log:
[Fatal Error] :1:1: Premature end of file.
2018-04-20 08:09:06 [main] ERROR c.g.a.a.a.l.c.A.soapXmlLogger.extract(85) - Couldn't process XML into a Document
org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.google.api.ads.common.lib.utils.XmlFieldExtractor.extract(XmlFieldExtractor.java:72)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelperImpl.handleResponse(AdHocReportDownloadHelperImpl.java:119)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelperImpl.downloadReport(AdHocReportDownloadHelperImpl.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.api.ads.common.lib.utils.AdsUtilityInvocationHandler.handleInvocation(AdsUtilityInvocationHandler.java:46)
at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84)
at com.sun.proxy.$Proxy46.downloadReport(Unknown Source)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelper.downloadReport(AdHocReportDownloadHelper.java:46)
at com.google.api.ads.adwords.lib.utils.v201710.ReportDownloader.downloadReport(ReportDownloader.java:65)
at com.zirous.indago.google.adwords.AdwordsTask.runAdTask(AdwordsTask.java:103)
at com.zirous.indago.google.adwords.AdwordsTask.run(AdwordsTask.java:63)
at com.zirous.indago.google.adwords.AdwordsTests.main(AdwordsTests.java:27)
HTTP Response Code: 401
at com.google.api.ads.adwords.lib.utils.v201710.DetailedReportDownloadResponseException$Builder.build(DetailedReportDownloadResponseException.java:35)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelperImpl.handleResponse(AdHocReportDownloadHelperImpl.java:117)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelperImpl.downloadReport(AdHocReportDownloadHelperImpl.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.api.ads.common.lib.utils.AdsUtilityInvocationHandler.handleInvocation(AdsUtilityInvocationHandler.java:46)
at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84)
at com.sun.proxy.$Proxy46.downloadReport(Unknown Source)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelper.downloadReport(AdHocReportDownloadHelper.java:46)
at com.google.api.ads.adwords.lib.utils.v201710.ReportDownloader.downloadReport(ReportDownloader.java:65)
at com.zirous.indago.google.adwords.AdwordsTask.runAdTask(AdwordsTask.java:103)
at com.zirous.indago.google.adwords.AdwordsTask.run(AdwordsTask.java:63)
at com.zirous.indago.google.adwords.AdwordsTests.main(AdwordsTests.java:27)
Exception in thread "main" java.lang.RuntimeException:
at com.zirous.indago.google.adwords.AdwordsTask.run(AdwordsTask.java:66)
at com.zirous.indago.google.adwords.AdwordsTests.main(AdwordsTests.java:27)
We ran a couple of test calls in Postman to download a report with a basic report definition and was met with a 502 Bad Gateway error. The Adwords forum suggested that it might be a client library issue instead.
Our reports were downloading fine about a week ago, then these errors happened without any change on our end.
Any ideas on what might be the cause?
Thank you.
Reactions are currently unavailable
Hello,
When attempting this call:
We are met with this error log:
We ran a couple of test calls in Postman to download a report with a basic report definition and was met with a 502 Bad Gateway error. The Adwords forum suggested that it might be a client library issue instead.
Our reports were downloading fine about a week ago, then these errors happened without any change on our end.
Any ideas on what might be the cause?
Thank you.