SRConsAPI 302 error

Options

SRConsAPI is sporadically (few times a week) returning a 302 error (see below). What's happening on the Convio end that would result in this error? In case it helps, here's a timestamp for one of these: Normal 0 false false false EN-US X-NONE X-NONE ]]><!><!>X-NONE X-NONE ]]><!><!>>

Tagged:

Comments

  • Let's try that again:

    SRConsAPI is sporadically (few times a week) returning a 302 error (see below). What's happening on the Convio end that would result in this error? In case it helps, here's a timestamp for one of these 2009-01-02 08:22:12 ET. Although this is only impacting a fraction of the logins to the site, it's still quite a nuisance for visitors.

    &lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;

    &lt;HTML&gt;&lt;HEAD&gt;

    &lt;TITLE&gt;302 Found&lt;/TITLE&gt;

    &lt;/HEAD&gt;&lt;BODY&gt;

    &lt;H1&gt; Found&lt;/H1&gt;

    The document has moved &lt;A HREF="https://secure3.convio.net/####/site/SRConsAPI"&gt;here&lt;/A&gt;.

    &lt;/BODY&gt;&lt;/HTML&gt;

  • I've been investigating this, but I haven't got a good answer yet.

    I suspect that we are not going to be able to complete eliminate all 302 redirects though. I would suggest that you handle them in your code by retrying. You may also want to clear cookies before retrying the request.

  • DavidHart :

    I've been investigating this, but I haven't got a good answer yet.

    I suspect that we are not going to be able to complete eliminate all 302 redirects though. I would suggest that you handle them in your code by retrying. You may also want to clear cookies before retrying the request.

    Why wouldn't you be able to completely eliminate them? That seems to imply a less than reliable infrastructure or improperly developed API.

    Keep us posted. It would at least be nice to know what's causing it and under what conditions it occurs.

  • DavidHart :

    I've been investigating this, but I haven't got a good answer yet.

    I suspect that we are not going to be able to complete eliminate all 302 redirects though. I would suggest that you handle them in your code by retrying. You may also want to clear cookies before retrying the request.

    Any update on this issue? We had multiple donations fail yesterday.

  • Robert Zakon:

    Any update on this issue? We had multiple donations fail yesterday.

    I'm keeping an eye on this.

    If anything, it's even more reason to be certain in your code that error states are checked for before you assume that the Convio side was updated or returned what you're expecting.

  • JeremyGP :

    I'm keeping an eye on this.

    If anything, it's even more reason to be certain in your code that error states are checked for before you assume that the Convio side was updated or returned what you're expecting.

    I agree with Robert: why wouldn't you be able to eliminate them? Is there some sort of load balancing issue here or something? This sounds like a bug, pure and simple, so I'm not comfortable letting Convio off the hook with "not sure we can eliminate all 302 errors" on this... If it was something other than the API url... maybe, but when we're building external applications against Convio's API, we need to be reasonably certian the API will be at least as available as the Convio application itself, and won't return random errors that indicate the URL has changed...

  • We are experiencing the same effect. For a simple server-side API call (listInterests), about one time in six I get a 302 redirect:


    HTTP/1.1 302 Found
    Date: Mon, 12 Oct 2009 19:26:12 GMT
    Server: Apache
    Cache-Control: private
    Set-Cookie: JServSessionIdr002=redirect; path=/
    Set-Cookie: JServSessionIdr002=redirect; path=/mysite/site/
    Location: https://secure2.convio.net/mysite/site/SRConsAPI
    Transfer-Encoding
    : chunked
    Content-Type: text/html; charset=iso-8859-1

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>302 Found</TITLE>
    </HEAD><BODY>
    <H1>Found</H1>
    The document has moved <A HREF="https://secure2.convio.net/mysite/site/SRConsAPI">here</A>.<P>
    </BODY></HTML>



    There is no pattern.

    Very annoying.

Categories