Jump to content
vman

Problem with lightstreamer create_session.txt

Recommended Posts

Hello,

It seems lightstreamer server was upgraded on 06/25/2019 from older 5.x version to newer 7.x. The new version is now returning a HTTP 400 Bad Request when doing a post to create_session.txt. 

------------------------------

POST /lightstreamer/create_session.txt HTTP/1.1

HTTP/1.1 400 Bad Request
Server: Lightstreamer-Server/7.0.1 build 1885 (Lightstreamer Server - www.lightstreamer.com) ENTERPRISE edition
Date: Tue, 25 Jun 2019 16:18:37 GMT
Content-Length: 0
Connection: close
x-accel-buffering: no

------------------------------

 

According to latest documentation on lightstreamer.com, the new version expects a LS_protocol=TLCP-2.1.0 tag added to the post. When passing this tag, the server responds with invalid license message. Please provide assistance on how the create_session.txt should be used. Is the server not configured properly? 

------------------------------

POST /lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0 HTTP/1.1

HTTP/1.1 200 OK
Server: Lightstreamer-Server/7.0.1 build 1885 (Lightstreamer Server - www.lightstreamer.com) ENTERPRISE edition
Content-Type: text/enriched; charset=ISO-8859-1
Cache-Control: no-store
Cache-Control: no-transform
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 1 Jan 1970 00:00:00 GMT
Date: Tue, 25 Jun 2019 16:17:56 GMT
Content-Length: 50
x-accel-buffering: no


CONERR,71,License not valid for this Client type

------------------------------

Share this post


Link to post

Hi,

Have you upgraded your Lightstreamer client to the latest version that is compatible with Lightstreamer 7?

Previously, you would have been using an older version of the Lightstreamer client that is compatible with the older Lightstreamer version 5 on the server. The following article provides some guidance on upgrading: http://blog.lightstreamer.com/2012/09/how-to-upgrade-to-javascript-client.html.

Kind Regards,

PM

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×