Skip to content

OAuth 500 Error: "failed to generate sso dh token" #152

@jackroc97

Description

@jackroc97

I followed the guide for setting up OAuth and waited 1 day as the guide recommended.

I tried to authenticate with OAuth using the following script (I have all the appropriate env vars set):

from ibind import IbkrClient

client = IbkrClient()
portfolio_accounts = client.portfolio_accounts().data
print(portfolio_accounts)

I get the following error when I run this code:

ibind.support.errors.ExternalBrokerError: IbkrClient: response error Result(data=None, request={'url': 'https://api.ibkr.com/v1/api/iserver/auth/ssodh/init', 'json': {'publish': True, 'compete': True}}) :: 500 :: Internal Server Error :: {"error":"failed to generate sso dh token"}

Has anyone else encountered this issue? I am trying to login to a paper account if that matters.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions