Quantcast
Channel: LivePerson Connect : Popular Discussions - All Communities
Viewing all articles
Browse latest Browse all 2324

Invalid Version errors

$
0
0

I'm seeing intermittent "invalid version" errors (internal code 33)
when calling the "events" method in the REST API. Most request work
fine, but a few return this error. I've pasted a sample error and a
sample successful request (from around the same time) below.

 

Has anyone seen a similar problem?

 

Mal

 

 

Bad Request:
2011-04-25 10:12:42 Posting to
/chat/H4878560588026681216-4534772278471186690K1850396/events with
query: {:v=>1, :from=>11}
2011-04-25 10:12:42 Response took 0.7695s and was:
#<HTTParty::Response:0x71d0ef0
@parsed_response={"error"=>{"time"=>"2011-04-25T10:12:42.378-04:00",
"message"=>"invalid version", "internalCode"=>"33"}},
@response=#<Net::HTTPBadRequest 400 Bad Request readbody=true>,
@headers={"x-powered-by"=>["ASP.NET"], "p3p"=>["CP=\"NON BUS INT NAV
COM ADM CON CUR IVA IVD OTP PSA PSD TEL SAM\""],
"connection"=>["close"], "content-type"=>["application/xml"],
"date"=>["Mon, 25 Apr 2011 14:12:46 GMT"],
"server"=>["Microsoft-IIS/6.0"], "content-length"=>["177"]}>

 


Good Request:
2011-04-25 10:01:29 Posting to
/chat/H4878560588026681216-4534772278471186690K1850396/events with
query: {:v=>1, :from=>0}
2011-04-25 10:01:29 Response took 0.3248s and was:
#<HTTParty::Response:0x752bfc8
@parsed_response={"events"=>{"event"=>[{"time"=>"2011-04-25T10:01:19.462-04:00",
"id"=>"0", "type"=>"state", "state"=>"waiting"}, {"by"=>"info",
"time"=>"2011-04-25T10:01:19.462-04:00", "text"=>"Welcome to Planned
Parenthood. A representative will be with you shortly. You are number
14 in line. Your wait time will be about 7 minute(s) and 0 seconds.
Thanks for your patience. ", "id"=>"1", "type"=>"line",
"source"=>"system"}],
"link"=>{"href"=>"https://server.iad.liveperson.net/api/account/xxxx/chat/H4878560588026681216-4534772278471186690K1850396/events?from=2",
"rel"=>"next"}}}, @response=#<Net::HTTPOK 200 OK readbody=true>,
@headers={"x-powered-by"=>["ASP.NET"], "p3p"=>["CP=\"NON BUS INT NAV
COM ADM CON CUR IVA IVD OTP PSA PSD TEL SAM\""],
"connection"=>["close"], "content-type"=>["application/xml"],
"date"=>["Mon, 25 Apr 2011 14:01:32 GMT"],
"server"=>["Microsoft-IIS/6.0"], "content-length"=>["627"]}>


Viewing all articles
Browse latest Browse all 2324

Trending Articles