question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing to manage multiple profiles

See original GitHub issue

Describe the bug AwsSession fails to manage multiple profiles for QPU-related tasks. It only works if I move the credentials to the default profile.

QPUs = AwsDevice.get_devices(types=["QPU"], aws_session=aws_session) is failing but simulators = AwsDevice.get_devices(types=["SIMULATOR"], aws_session=aws_session) is working. We created aws_session using the instruction provided in the docs . The only workaround is to move the credentials to default profile.

Error message: ClientError: An error occurred (UnrecognizedClientException) when calling the SearchDevices operation: The security token included in the request is invalid

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Boniface316commented, Sep 21, 2022

@ajberdy its working! Thank you very much!

0reactions
ajberdycommented, Sep 20, 2022

Thanks for identifying this bug! Here is a PR with my fix: https://github.com/aws/amazon-braket-sdk-python/pull/446. It is not ready to merge as I need to update some of the adjacent unit tests, but feel free to install from source to unblock your development in the meantime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues that can occur when you add multiple Exchange ...
This article describes scenarios in which adding multiple accounts can cause unexpected behavior.
Read more >
User Profile Service Failed the Logon (Causes & Solutions)
Are you looking for ways to fix the user profile service failed the logon error? If you are, you are coming to the...
Read more >
Unable to manage individual listing through Business Profile ...
We have thousands of profiles we manage and found this same issue. One workaround we found is that if you click on the...
Read more >
Profile Installation Failed: The new MDM payload does not ...
Profile Installation Failed: The new MDM payload does not match the old payload. ... screen is showing more Windows devices activated with UEM...
Read more >
Manage users individually - Adobe Support
Learn more. Business ID (Applies to teams or enterprise accounts): If you have not claimed the email domain or if your users authenicate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found