ibeam: Gateway Un-Authenticates and Throws this Failure Message: 'Force compete capability must be used together with compete flag'

Hi voyz, I just want to let you know that I REALLY appreciate the work you’ve done here. This has been such a time saver for me.

Everything was working perfectly until recently, when I started getting the bug below.

Describe the bug The gateway loses authentication with the failure message: ‘Force compete capability must be used together with compete flag’

To Reproduce The gateway has been working completely fine for me for the past few hours, and then it lost authentication.

Upon posting the /iserver/auth/status request, I receive this: {'authenticated': False, 'competing': False, 'connected': True, 'message': '', 'serverInfo': {'serverName': None, 'serverVersion': None}, 'fail': 'Force compete capability must be used together with compete flag'}

I’ve tried all of the recommended fixes such as changing the proxy, using the logout endpoint, using a combination of the logout endpoint and the reauthenticate endpoint, all of these to no avail.

No matter how many times I restart ibeam, this issue still persists and prevents successful authentication.

Is there some way to specify a ‘compete flag’ when sending a request to the API, or is there another workaround to this issue?

Environment IBeam version: latest (pulled today)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Seems that they resolved this issue. IB gateway running again as normal.

Hi @adamkornafeld, re-opening this because it seems that there are some modifications to be made here.

Is there something that we need to modify in iBeam to comply with this new compete flag rule?

The issue appears to be that there has always been a ‘compete’ boolean in the OAUTH SSODH init call, and for the last year or so, it has apparently been ignored or even been a source of auth issues, so I decided to set it to ‘false’ as a kind of safe bet, given the lack of transparency.

@cliffnondat I have been in a meeting with IBKR helpdesk today (3.31.) and they confirmed your hypotheses. They said, the compete flag has been part of their implementation for long, but it was practically turned off / ignored as there has been issues with its implementation. Lately they did implement it “correctly” and it is now enabled. They also confirmed that it has to be set to true, but could not provide too much insight into why this is and why now. Hoping to get a hold of an IBKR engineer to shed some light on this for us.

@JackD111 same here on my end. Lets hope it stays that way.