Jump to content
  • 0

[DEMO] Streaming API : Allowed session count reached (code 7)


NicoIsHere

Question

Hi everyone !

For a week or two, I can observe a little problem on DEMO with streaming API. When I restart my Application, it closes wisely the API, unregistering everything and closing connection. After that the application restarts, and bam, error 7 "allowed session count reached". On saturday, waiting 60 seconds between stop and start was enough to successfully reconnect to the streaming API, but today (monday, stopped at 17h17 GMT+2), it took 20 minutes to have a successfull restart. 

I think it is server side problem : the session seems to exists... maybe it takes time for the server to successfully close it. I used this API for more than a year and it is the first time I have so much trouble with the streaming API....

Anyone else having similar behaviour on streaming API ?

Thanks !

NLP

Link to comment

8 answers to this question

Recommended Posts

No update 😐

The only things I tried is to wait and try to restart few minutes later...

Actually, it is like a confirmation of the latency when you disconnect / reconnect...

My solution is to ... wait after disconnecting... and sometimes... it takes some time 😫

Have a good day !

NLP

Link to comment

Had similar issues and had to stop my developemnt until I figure out what is wrong.

All began when I started doing automated testing of my software and the session will be opened and closed many times, I will reach the session limit after 5 tests or so.

It may be possible to stop closing the session, I think reconnecting will give you the old session and the problem is solved. Otherwise, a bit risky moving to live account if the issue is server side.

Has this been fixed yet?

Link to comment

No fix => I had the problem yesterday...

Maybe... you can reconnect to the old session but in this case the REST API will connect with different auth infos...
The major problem to me is that it is not always the same amount of time for delay. Sometimes 20 minutes waiting is not enough, sometimes you can reconnect after 45 seconds...

The best solution to me is to have a REST command to force the closing of the streaming API (Note : unsubscribing to everything and closing listeners do NOT solve the problem). With an explicit REST command (with the correct CST- token) => problem solved. 

... maybe I'am wrong totally on the source of the error, I don't know ...

This problem arrived late july, and I had never seen it for a year or more before that !!!

Link to comment

No, I have a mail from the IG team => we are limited to one session at a time !
I tested and it is true, when my program is connected to streamAPI, I can't use the stream companion from IGlabs.
I joined a capture of the answer of the mail from IG team.

So I have :

- Only 1 software running at a time (only one session of streaming API used)
- the software is fully closed before relauching another one  with a minute before the disconnection and a new connection).
- before disconnecting from the stream API, I unsubscribe to everything (epics, account etc)
- I also disconnect from the REST API, after the stream API
- I respect all limitations given by IG on IGlabs site
- I don't use the streamAPI companion (only one time to confirm the 1 session limitation)
- I connect the REST API before reconnecting the streamAPI and I use the token of the new connection (I don't reuse the old one, of the connection which has been cut).
- I never experienced those problem before end july 2019, and the connection / disconnection system was not change for months before that

Considering all of that, I tried to explain the problem with a server side timeout. I think it is the simplier explanation, but not sure of it (of course). Maybe if some can get in touch with the dev team, we will have more clues on this problem...

NLP

contacts - Dossiers locaux - Mozilla Thunderbird.jpg

Link to comment

I agree that this looks like a server side issue on the IG. I started seeing this behaviour at the end of August.

My java code is unsubscribing and disconnecting from lightstreamer and from my log-files this is successful.

I have put a retry around the lightstreamer openConnection method and wait for 30 secs.

The issue is easily reproducible and I can see successful connections after a couple of attempts with the modified code.

I suggest that IG fixes this rather than assuming users are breaching session limits. In my case I am definitely running one Java jar file that connects on a single thread for the api key I am using.

 

 

Link to comment

Hi !

I did the same thing => a retry loop of connection if a failure is detected (40sec). It connects successfully after few attemps everytime.

I agree about the fix : it is on IG side, to detect a closed session faster or to provide a REST function that force the shutdown of a user session (in order to reconnect after few seconds).

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • image.png

  • Posts

    • The cat and dog memes have really come a long way, and lots of people relate to this project. $CATE caught my eye when I saw its listing on Bitget, and so far, the price trend is good currently looking for a entry
    • Is very obvious that dogs and cats are the best friend to human considering these are the most prominent meme communities in the crypto space. Well toad, rabbit, ****, bull etc all tried but Cats and Dogs meme remain top community. The love for this two can be traced to the pioneering pet of Atsuko Sato (Cat and Dog), the dogs inspired Shiba inu and doge.   Now, the Cats meme communities are pushing for the exposure of “Cate” known as the Kabosu Mama. They believe that CATE isn’t just any cat but a legendary meme feline that has been the best friend to the famous $DOGE and now extends a paw of friendship to $NEIRO.   Currently, $CATE is trending after many top exchanges listed the meme.  I wonder if this might be the next doge or shiba but considering its tokenomic and total supply I think is worthy to add to watchlist. Also considering this is related to the Sato family will it become the top cat community meme?        
    • Bitcoin (BTC), the world’s oldest and most valued cryptocurrency, remained steady around the $58,000 mark over the weekend. This stability comes as a contrast to other popular altcoins like Ethereum (ETH), Dogecoin (DOGE), Solana (SOL), Ripple (XRP), and Litecoin (LTC), which all experienced declines. The Market Fear & Greed Index reflected this sentiment, standing at 39 out of 100, indicating a state of "Fear" in the market. Among the altcoins, Nervos Network (CKB) emerged as the biggest gainer with a 5% increase over the past 24 hours. On the other hand, Bittensor (TAO) saw the steepest decline, with a 9% drop in the same period. What to Expect from the September Fed Meeting Fed Meeting Overview The US Federal Reserve’s meeting on September 17-18 is expected to announce an interest rate cut on September 18. The market predicts a higher chance of a 50 basis points (bps) cut compared to a 25 bps cut. Data from CME FedWatch and Polymarket shows a strong likelihood for a 50 bps reduction. Historical Context This will be the first rate cut since March 2020. Previous rate cuts have historically benefited Bitcoin, as seen with the 2021 bull run. Potential Impact on Bitcoin Short-Term Outlook Doctor Profit, a crypto analyst, warns of potential short-term declines in Bitcoin if the Fed announces a rate cut. Market uncertainties, like geopolitical issues, could increase volatility. He advises careful risk management during this period. Long-Term Forecast Doctor Profit remains positive about Bitcoin’s long-term outlook. He expects Quantitative Easing (QE) to increase market liquidity, benefiting Bitcoin. Additionally, liquidity from FTX creditors in Q4 could further support Bitcoin’s price. Future Rate Cuts Citi analysts forecast a total Fed rate cut of 1.25% this year. Further rate cuts may follow the September meeting, impacting Bitcoin and the broader crypto market.
×
×
  • Create New...
us