I am back to working on our Google API application using PHP and
NuSOAP. The last time I worked with my application, I was able to make
Sandbox calls and everything worked smoothly. Today however, I am
starting to have some issues. Every time I run getClientAccounts, I
receive the "An internal error has occurred. Please retry your
request." error. I have tried running the getClientAccounts,
getUnitCost, getAccountInfo requests, and they all generate the same
error.
Here is the request, response and fault info:
Request
POST /api/adwords/v11/InfoService HTTP/1.0
Host:
sandbox.google.com
User-Agent: NuSOAP/0.7.3 (1.114)
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: ""
Content-Length: 638
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/
envelope/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-
ENC="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns7909="http://
tempuri.org">
<SOAP-ENV:Header>
<email>***</email>
<password>***</password>
<useragent>test</useragent>
<developerToken>EMAIL++USD</developerToken>
<applicationToken>***</applicationToken>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<getUnitCount ></getUnitCount >
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Response
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=iso-8859-1
Transfer-Encoding: chunked
Cache-control: private
Date: Mon, 04 Feb 2008 16:38:14 GMT
Server: GFE/1.3
Connection: Close
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/
envelope/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
<faultstring>An internal error has occurred. Please retry your
request.</faultstring>
<detail>
<ns1:fault xmlns:ns1="
https://adwords.google.com/api/adwords/v11">
<ns1:code>0</ns1:code>
<ns1:message>An internal error has occurred. Please retry your
request.</ns1:message>
</ns1:fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Fault
Array
(
[faultcode] => soapenv:Server.generalException
[faultstring] => An internal error has occurred. Please retry
your request.
[detail] => Array
(
[fault] => Array
(
[code] => 0
[message] => An internal error has occurred.
Please retry your request.
)
)
)
I have narrowed it down to two things: either I am doing something
very silly and simple to cause this, or something might be going on
with the Sandbox. Any ideas?
Thanks in advance!
Dan