Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 80

Hybrid View

  1. #1
    Hi,
    I'm having trouble maintaining the streaming connection with IG as well.
    It cuts automatically after roughly an hour or so, and I don't know how to test if the connection is active or not.
    Any help with that would be greatly appreciated.

    Thanks in advance.

  2. #2
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi Mickael,

    could you please send us the client side log snippet that puts in evidence the cut?

    Thanks, Gianluca

  3. #3
    Hi,

    I am trying to connect to IG streaming api with lightstreamer with Python. I am using the the light streamer stock list demo implementation on Github with the parameters modified for IG index. I appear to be getting a server error, When i use the same details on IG streaming companion, i was able to connect to the server successfully, which makes me suspect that this is not a server issue.

    see my debug logs below

    urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): demo-api.ig.com
    urllib3.connectionpool - DEBUG - https://demo-api.ig.com:443 "POST /gateway/deal/session HTTP/1.1" 200 359


    root - DEBUG - Opening a new session to <https://demo-apd.marketdatasystems.com>


    root - DEBUG - Making a request to <https://demo-apd.marketdatasystems.com/lightstreamer/create_session.txt> with body <b'LS_op2=create&LS_cid=mgQkwtwdysogQz2BJ4Ji+kOj2B g&LS_user=*****&LS_password=CST-*****XST-*****'>
    root - ERROR - -2


    Server response error:
    %sA system error occurred.





    Any assistance would be appreciated




  4. #4
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi Femi,

    consider that the Python demo is just an example of how to implement the Network Protocol, so it is possible that some corner case has not been taken into consideration.

    Anyway, we'll be going into a debug session to check what goes wrong when connecting with IG and get back to you with more information.

    Thanks,
    Gianluca

  5. #5
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Thank you very much Femi for your cooperation in analyzing this issue.

    After having fixed a bug in the demo source code on a logging instruction, and tried to establish a session with IG by using similar JavaScript code, we have concluded that something unexpected is happing to your account.

    In fact, the negative code error sent back by the server (-2) indicates that the specific Metadata Adapter implementation has refused the user connection, as you can see from the documentation.

    Please let us know if your issue will be resolved.

    Thanks and Regards,
    Gianluca

  6. #6
    Thanks a lot Gialunca. I found out the issue was a bug in my own code that generated the tokens for the request. really appreciate your help.
    Last edited by femi; October 5th, 2019 at 01:07 AM.

  7. #7
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi femi,

    thank you for this feedback.

  8. #8
    Hi Gialunca,

    I had an application running this morning, and i noticed that occasionally, the lightstreamer server "Freezes" i.e stops sending back messages, causing a TimeoutError. I can attempt to automatically reconnect back to the server in such cases, but i wanted to get your thoughts, if there is already a way to do this?

    Thanks,
    Femi

  9. #9
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi Femi,

    I confirm that the demo currently does not provide any reconnection mechanism. Therefore, for the moment you should extend the demo with automatic retries.

    Regards,
    Gianluca

  10. #10
    I wonder if someone can answer a very simple and very early question for me, before I start re-learning my forgotten coding skills. I can see that people are somehow using python to connect to IG. I notice that lightstreamer doesn't seem to have a linux version, so I'm wondering if the python is running on linux. I really can't face windows.

 

 

Similar Threads

  1. Python Client Library for Lightstreamer
    By Alessandro in forum Client SDKs
    Replies: 1
    Last Post: December 18th, 2014, 05:15 PM
  2. how to comunicate lightstreamer server by python
    By keyan in forum Client SDKs
    Replies: 4
    Last Post: December 18th, 2014, 05:12 PM
  3. Replies: 2
    Last Post: January 5th, 2012, 08:53 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:41 AM.