WebServiceException when trying to do a request to the Bing Ads API V13 using the Java SDK

Hyros Inc 0 Reputation points
2023-06-13T11:46:10.7433333+00:00

Hello there! I'm currently facing an issue regarding the Reporting API. As explained in this documentation, I'm trying to submit a report request using the ReportingService along with the submitGenerateReport method.

It's not that common, but sometimes a WebServiceException is thrown. And there's a specific chain of messages, that, resumed, looks like this:

*org.apache.cxf.phase.PhaseInterceptorChain : Interceptor for {https://bingads.microsoft.com/Reporting/v13}ReportingService#{https://bingads.microsoft.com/Reporting/v13}SubmitGenerateReport has thrown exception, unwinding now:
org.apache.cxf.interceptor.Fault: Could not send Message.
Caused by: javax.net.ssl.SSLException: SSLException invoking https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/v13/ReportingService.svc: extra data given to DerValue constructor
Caused by: javax.net.ssl.SSLException: extra data given to DerValue constructor
Caused by: java.io.IOException: extra data given to DerValue constructor
*
By doing some debugging on the code, I managed to execute the same line about... fifty times (and in the same exact context of all of the variables), and it was weird but this error was only thrown 10 times, and the other 40 tries were a successful response.

Is there any workaround for this issue? Should I retry the operation until the response is OK? Or this is a bug from the BingAds SDK for Java? (Currently using the 13.0.10 btw).

Microsoft Advertising | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.