Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lexicon aborts with an error at provider "euserv". #1299

Open
hubiuwe opened this issue Jun 26, 2022 · 1 comment
Open

Lexicon aborts with an error at provider "euserv". #1299

hubiuwe opened this issue Jun 26, 2022 · 1 comment

Comments

@hubiuwe
Copy link

hubiuwe commented Jun 26, 2022

Lexicon aborts with an error at provider "euserv".
lexicon v3.11.3
Error message:
Traceback (most recent call last): File "/usr/local/bin/lexicon", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.8/dist-packages/lexicon/cli.py", line 131, in main results = client.execute() File "/usr/local/lib/python3.8/dist-packages/lexicon/client.py", line 81, in execute self.provider.authenticate() File "/usr/local/lib/python3.8/dist-packages/lexicon/providers/base.py", line 73, in authenticate self._authenticate() File "/usr/local/lib/python3.8/dist-packages/lexicon/providers/euserv.py", line 74, in _authenticate orders = auth_response["result"]["orders"] KeyError: 'orders'

After a successful auth, the key "orders" is not transmitted in login response.
This is also compliant with the API Docs
I don't know why it worked before.

Sorry for my bad english
thx Uwe

@bernhardfrenking
Copy link

Hello @hubiuwe,

if you want to query your orders
use the following requests in its order:

  1. "newSessionId" to get a Session Id
  2. "login" with your Session Id
  3. "showorders" with your Session Id

Then you should get your orders as a json.

Best regards
Bernhard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants