Search code examples
rubyrubygemsxml-rpcopenx

openx 2.8.1 "Session ID is invalid" when using XMLRPC api + ruby openx gem


Occasionally when accessing OpenX 2.8.1 via its XMLRPC api (using the ruby 'openx' gem), I will get this error message:

Session ID is invalid

I cannot find anything in OpenX's forums about this, nor via some Google searching.

I am starting to suspect that it is a bug or other issue in the ruby gem itself.

Has anyone else encountered such an error, and if so, what is the fix? It does seem to resolve itself after running OpenX's maintenance scripts.


Solution

  • In using OpenX with a JSP application, we've found that too long a period of inactivity between the application and OpenX will cause the OpenX to invalidate the session ID. Currently our application was unable to get itself a new session, our workaround has been a restart of the application.