-
Notifications
You must be signed in to change notification settings - Fork 516
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
"Cannot re-enter scope: profile:" errors in plugins using ACA-Py 0.12.0rc0 (from injection_context.py) #2777
Comments
Also flagging @andrewwhitehead on this to see if he might have some insights... |
I'll spend some time looking into this -- seems likely that this stems from that change I made in #2705 |
I am having the same issue with 0.12.0rc0. It seems to be just about every API call, only in an agent configured as multitenant (no plug-ins). Traceback, with a few messages prior:
|
Yes weird the integration tests pass, specifically I just re-tested:
... which all pass. Could be related to some difference between how aca-py is configured, e.g. sqlite vs postgres database (integration tests use sqlite), or some other parameter |
I suspect there are a limited number of aca-py endpoints affected and they are not included in any of the integration tests. For example none of the tests do this: |
I don't understand this profile scope stuff yet, but seems like worse case reverting the change shouldn't be a problem. I haven't ran into it yet doing some multitenant work recently. |
The revert of the problem got merged. I tested it with the scenario Lucas described but any other testing would be appreciated. You can use the main branch as your aries-cloudagent library in poetry with.
|
I’ll do an 0.12.0rc1 release so that the testing will be easier from a published image. |
I've run into an issue in a couple different contexts when testing out using the 0.12.0rc0 ACA-Py image and libraries.
I'm wondering if there's some relation to the changes made here? #2705
Either with multitenancy? Or plugin compatibility? I'm not really sure the root cause...
1. Building and testing multitenant_provider plugin
This is using the plugin from https://github.com/hyperledger/aries-acapy-plugins and the devcontainer and startup/testing instructions there.
Update pyproject aca-py version to 0.12.0rc0 and build in devcontainer.
Unit tests pass
All integration tests failing with
1 example:
2. Updating Traction to 0.12.0rc and running it
Get errors when trying to do anything that creates or accesses a wallet in
Traction Innkeeper plugin
Multitenant provider plugin
Creating wallet on fresh start (Innkeeper plugin):
Accessing a wallet (Multitenant provider):
Drilling in more and I find the root cause in
The
aries_cloudagent/core/profile.py", line 40
part is new from what I can tell added from (#2705)in the 0.12.0rc0 tag at least https://github.com/hyperledger/aries-cloudagent-python/blame/0.12.0rc0/aries_cloudagent/core/profile.py
The text was updated successfully, but these errors were encountered: