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

  • 0

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
  • 0

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
  • 0

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
  • 0

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
  • 0

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
  • 0

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

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
  • image.png

  • Posts

    • ASX: COLES GROUP LIMITED. – COL Elliott Elliott Wave Technical Analysis TradingLounge (1D Chart) Greetings, Our Elliott Wave analysis today updates the Australian Stock Exchange (ASX) with COLES GROUP LIMITED. – COL. In our ASX Stocks Top 50 forecast service, we have accurately forecast a price decline from a high of around 17.15 down to around 16.00 at the current low. And we are now identifying COL could move higher in the short term outlook. ASX: COLES GROUP LIMITED. – COL Elliott Wave Technical Analysis   ASX: COLES GROUP LIMITED. – COL 1D Chart (Semilog Scale) Analysis Function: Counter trend (Minute degree, green) Mode: Corrective Structure: Double Zigzag Position: Wave (b)-purple of Wave ((y))-green Latest forecast: Accurate forecast Details: The short-term outlook indicates that wave ((y))-green is unfolding as a Zigzag, and wave (a)-purple has ended. Therefore, wave (b)-purple is expected to continue pushing lower, seeking support around 16.01 - 15.71 before wave (c)-purple returns to rise higher. Pushing higher off 17.15 would renew the bull market view. Invalidation point: 15.35       ASX: COLES GROUP LIMITED. – COL Elliott Wave Technical Analysis TradingLounge (4-Hour Chart) ASX: COLES GROUP LIMITED. – COL Elliott Wave Technical Analysis ASX: COLES GROUP LIMITED. – COL 4-Hour Chart Analysis Function: Counter trend (Minute degree, green) Mode: Motive Structure: Impulse Position: Wave (c)-purple of Wave ((y))-green Details: The shorter-term outlook suggests it appears the (b)-purple wave has bottomed, but a move higher than level 16.5 is needed to confirm this outlook. If this forecast is correct, wave (c)-purple will be opened to continue pushing higher, aiming for higher targets. Invalidation point: 15.37     Conclusion:   Our analysis, forecast of contextual trends, and short-term outlook for ASX: COLES GROUP LIMITED. – COL aim to provide readers with insights into the current market trends and how to capitalize on them effectively. We offer specific price points that act as validation or invalidation signals for our wave count, enhancing the confidence in our perspective. By combining these factors, we strive to offer readers the most objective and professional perspective on market trends.   Technical Analyst: Hua (Shane) Cuong, CEWA-M (Master’s Designation). Source : Tradinglounge.com get trial here!  
    • Mathews Darcy mentioned that the quarterly production report released by BHP Group recently showed strong performance in copper and iron ore businesses, but adverse weather conditions affected coal production. Despite the upward trends in copper and iron ore prices, the market response to the stock price of BHP was relatively subdued. This article will delve into the analysis of the quarterly report of BHP Group and discuss its impact on the stock market and the reactions of investors. Quarterly Performance and Market Response Mathews Darcy pointed out that despite price increases in copper and iron ore on Wednesday, the stock price of BHP only saw a slight growth after the quarterly report release, reflecting the tepid response of investors to the report. Particularly noteworthy is the decline in the stock price of BHP amidst significant overnight increases in copper and nickel prices and iron ore prices maintaining a six-week high. Additionally, Mathews Darcy noted that major brokerage firms have begun adjusting their ratings and price targets for BHP based on the latest quarterly data. Several brokerage reports indicate that despite strong demand for copper and iron ore, the overall performance of BHP did not meet market expectations, possibly due to production constraints in its coal division. Investment Strategies and Future Outlook Mathews Darcy advised that when considering BHP stock, investors should carefully analyze the performance of its various divisions and future market prospects. While price fluctuations in mineral resources offer profit opportunities for BHP, investors should also be aware of the potential impact of price fluctuations on company performance. Furthermore, paying attention to brokerage research reports and rating updates will help investors better understand market dynamics and potential investment risks. Mathews Darcy also emphasized the importance of diversified investments, especially in an industry facing price volatility and geopolitical risks. Diversifying investments among different resource stocks can effectively reduce the impact of single market fluctuations on the investment portfolio.
    • Gonna participate! Personally, I'm DCAing in this memecoin....
×
×
  • Create New...
us