Getting 9001 - Unexpected Server Error

361 views
Skip to first unread message

Aaron Somal

unread,
Apr 19, 2012, 8:49:19 AM4/19/12
to 7digital API Developers
Hi,

We're getting the 9001 error code randomly on this request:

http://api.7digital.com/1.2/artist/details?artistId=473615&oauth_consumer_key=OUR_CONS_KEY&country=uk

This happens despite the previous three requests (which happen
directly before, with identical URLs but different artistId's), which
work fine. The request works fine on our local dev versions, but
errors on our live server.

Your API Docs mention that we should contact you when we get an error
code above 7000.

Any ideas on what might be causing this?

Christine O'Dell

unread,
Apr 19, 2012, 8:57:08 AM4/19/12
to 7digit...@googlegroups.com
Aaron,

We just experienced a very brief outage with our loadbalancer setup, but this has been fixed.

Please could you try again and let us know if you are still experiencing problems.

Thanks,
Chris

Aaron Somal

unread,
Apr 19, 2012, 9:42:57 AM4/19/12
to 7digital API Developers
Hi Chris,

Unfortunately we're still experiencing this issue.


Aaron

Goncalo Pereira

unread,
Apr 19, 2012, 9:58:45 AM4/19/12
to 7digit...@googlegroups.com
Hello Aaron,

we're not able to replicate the bug, can you tell us if your dev has any differences from live? Different keys, parameters, anything else?

Would be good to get some copies of the responses if possible, including headers.

Thanks
--
Goncalo Pereira, Lead Developer for Services at 7digital
For API support please read this 

Aaron Somal

unread,
Apr 19, 2012, 10:05:43 AM4/19/12
to 7digital API Developers
Hi Goncalo,

The only difference is that our dev version runs locally, while the
live server runs from a remote server. The request is sent in exactly
the same way with the same key and parameters.

The response code is:
<?xml version="1.0" encoding="utf-8" ?><response status="ok"
version="1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://api.7digital.com/1.2/static/
7digitalAPI.xsd" ><artist id="473615"><name>Veronica Falls</
name><sortName>Veronica Falls</sortName><url>http://www.7digital.com/
artists/veronica-falls/?partner=1375</url><image>http://cdn.
7static.com/static/img/artistimages/00/004/736/0000473615_150.jpg</
image><bio><text></text></bio></artist></response>?<?xml version="1.0"
encoding="utf-8" ?>
<response status="error" version="1.2">
<error code="9001">
<errorMessage>Unhandled 7digital API server error.</errorMessage>
</error>
</response>

It seems that we get a legitimate response, but an error code is also
attached to it.


Aaron

Goncalo Pereira

unread,
Apr 19, 2012, 10:23:53 AM4/19/12
to 7digit...@googlegroups.com
Hey,
I haven't seen this behaviour before, can you curl the request? please send us a manual request including headers.

We don't have more than one status code per response, are you merging or threading requests in any way? 

Thanks

Aaron Somal

unread,
Apr 19, 2012, 10:41:30 AM4/19/12
to 7digital API Developers
Hi,

We've tried with a CURL request and this responds fine.

We've also noticed the earlier response contains 2 different XML
declarations:

Part 1 (correct response) -
<?xml version="1.0" encoding="utf-8" ?><response status="ok"
version="1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://api.7digital.com/1.2/static/
7digitalAPI.xsd" ><artist id="473615"><name>Veronica Falls</
name><sortName>Veronica Falls</sortName><url>http://www.7digital.com/
artists/veronica-falls/?partner=1375</url><image>http://cdn.
7static.com/static/img/artistimages/00/004/736/0000473615_150.jpg</
image><bio><text></text></bio></artist></response>?


Part 2 (error) -
<?xml version="1.0"
encoding="utf-8" ?>
<response status="error" version="1.2">
<error code="9001">
<errorMessage>Unhandled 7digital API server error.</errorMessage>
</error>
</response>

We are not merging or threading any requests across our code.

Why do we receive a correct response followed directly by an error
code?


Aaron

Goncalo Pereira

unread,
Apr 19, 2012, 10:49:42 AM4/19/12
to 7digit...@googlegroups.com
We're confused with the behaviour you're experiencing, we can't duplicate it with CURL, we don't see this behaviour with any other clients and you say you can't duplicate it outside the application.

The API doesn't set a second response so would it be possible to have the headers and any other information from the application?


Regards

Aaron Somal

unread,
Apr 19, 2012, 12:00:23 PM4/19/12
to 7digital API Developers
Request URL:
http://api.7digital.com/1.2/artist/details?artistId=473615&oauth_consumer_key=OUR_KEY&country=GB

Request Headers:
Request Method:GET
Status Code:200 OK
artistId:473615
oauth_consumer_key:OUR_KEY
country:GB

Response Headers:
Response HTTP/1.1 200 OK
Server nginx/0.7.67
Date Thu, 19 Apr 2012 15:50:11 GMT
Content-Type text/xml; charset=utf-8
Last-Modified Tue, 17 Apr 2012 08:13:46 GMT
X-AspNet-Version 4.0.30319
x-7dig aw1
Access-Control-Allow-Origin *
Content-Length 502
Accept-Ranges bytes
Cache-Control private, max-age=432000
Age 200152
Expires Sun, 22 Apr 2012 08:14:19 GMT
x-cdn Served by WebAcceleration
Connection Keep-Alive

Does that help?

filip

unread,
Apr 20, 2012, 10:29:29 AM4/20/12
to 7digital API Developers
Hi Aaron,

are you still experiencing problems?

If yes can you please contact us directly at a...@7digital.com ?

Thanks
Filip

On Apr 19, 5:00 pm, Aaron Somal <aaronso...@googlemail.com> wrote:
> Request URL:http://api.7digital.com/1.2/artist/details?artistId=473615&oauth_cons...

cato...@googlemail.com

unread,
Sep 27, 2012, 11:10:13 AM9/27/12
to 7digit...@googlegroups.com, aaron...@googlemail.com
Reply all
Reply to author
Forward
0 new messages