Old 23rd October 2010, 19:38   #1
kar10s
Junior Member
 
Join Date: Oct 2010
Posts: 2
Get Random Stations error using API

Hi,
I am testing Api shoutcast and i am getting frecuently an error with this request to random function.

http://api.shoutcast.com/station/randomstations?k=[here my devidkey]&limit=100&f=xml

<response>
<statusCode>500</statusCode>
<statusText>Generic Server Error</statusText>
<statusDetailText>20022</statusDetailText>
</response>

other times I obtain a correct response
<response>
<statusCode>200</statusCode>
<statusText>Ok</statusText>
+<data>
</data>
</response>

I have changed the limit to other values with similar results.

¿Do you know why this happens?
Regards
kar10s is offline   Reply With Quote
Old 7th March 2011, 21:54   #2
HQ-Gadgets
Junior Member
 
Join Date: Nov 2010
Posts: 4
Quote:
Originally Posted by kar10s View Post
Do you know why this happens?
No, but I can confirm this Problem.
I think it's a Server Problem.

With Genre=Rock, mt=mp3 and br=128 the Response is mostly a Server Error, a Limit to 20 don't help:
http://api.shoutcast.com/station/randomstations?k=[devidkey]&f=xml&mt=audio/mpeg&br=128&genre=Rock&limit=20
HQ-Gadgets is offline   Reply With Quote
Old 3rd July 2011, 11:35   #3
HQ-Gadgets
Junior Member
 
Join Date: Nov 2010
Posts: 4
Since 1 week the Problems are stronger.

Now I have up to 99% the Error(Code 20022) Response.

http://img231.imageshack.us/img231/2827/errorhig.jpg

Please correct the problem soon, otherwise I have to change my Radio App to ICEcast Radio Directory.
HQ-Gadgets is offline   Reply With Quote
Old 3rd July 2011, 12:39   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
it is known about but we're not progressing on what is leading to the error (i.e. is known where it happens, but not how / why) so i cannot advise on when a resolution to the issue will be. also is it just the randomstations action which is causing you issues?

-daz
DrO is offline   Reply With Quote
Old 3rd July 2011, 13:13   #5
HQ-Gadgets
Junior Member
 
Join Date: Nov 2010
Posts: 4
Quote:
Originally Posted by DrO View Post
also is it just the randomstations action which is causing you issues?

-daz
My App only use the randomstation action, but I have tested the genrelist action too, now with the same Problem.

First I had only Problems with big Pools of Streams(Genre=Rock and Pop, and low Bitrate=128 kbps), but now a simple Request like Genre-List produce the Error.

http://api.shoutcast.com/legacy/genrelist?k=...

I think it's a Database and/or Server capacity Problem.
HQ-Gadgets is offline   Reply With Quote
Old 3rd July 2011, 20:25   #6
DrO
 
Join Date: Sep 2003
Posts: 27,873
k, i was only under the impression from what i've been hearing / seeing that it was just the randomstations action which was having issues. most likely it is a hardware / db issue but i'm not able to do much towards the issue (though i've seen what is internally reported when that 20022 error happens and it didn't help much). hopefully it will be sorted out soon...

-daz
DrO is offline   Reply With Quote
Old 11th July 2011, 23:40   #7
mavvy
Junior Member
 
Join Date: Jul 2011
Posts: 6
Hi guys, sorry that my first post is a help request too... I'm getting this 20022 error very often (8 errors out of 10 attempts) when requesting the main lists:

/legacy/genrelist?f=xml&k=myapikey
/genre/primary?f=xml&k=myapikey

But it also happens as often when accessing genres directly:

legacy/genresearch?f=xml&k=myapikey&genre=90s

Direct access to a station looks very stable. it's just the listings that ersult in this error.

Do you happen to have a clue by now what could cause this?
mavvy is offline   Reply With Quote
Old 11th July 2011, 23:41   #8
DrO
 
Join Date: Sep 2003
Posts: 27,873
all i know is its being looked into and that's about as much as i know on how it's progressed. if / when i know more then i'll try to remember to post back to this thread (with everything else i'm trying to do, heh).

-daz
DrO is offline   Reply With Quote
Old 12th July 2011, 00:05   #9
mavvy
Junior Member
 
Join Date: Jul 2011
Posts: 6
thanks daz, crossing my fingers that the devs (or server admins if it's a server/db issue) will find the reason
mavvy is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast Technical Support

Tags
api, error, function, ramdom, shoutcast

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump