Repository navigation
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Scenario & Reproduction Steps
By default secrets.resolve works as expected (ignores archived records with the same name), but resolve_all seems to include archived items.
Setup:
- Create an API user with appropriate permissions needed for this and put appropriate token in .env file
- Create a vault with two records in it, one named Bug_ArchivedItems and one named Bug_noArchivedItems and for the username put
test_userin both records. - run the code that is below, the expected results happen, you get both values correctly.
- archive the record named Bug_ArchivedItems.
- create a new record with the name Bug_ArchivedItems, add in the username of
test_userand save it - re-run below code and you will now get an error
type=<ResolveReferenceErrorTypes.TOO_MANY_ITEMS: 'tooManyItems'>
Code to reproduce (please excuse the terrible code, I just cobbled pieces together from an existing project to reference in this issue but hopefully it's enough). Standard resolve seems to ignore archived items by default but resolve_all does not.
from onepassword.client import Client as onepass # type: ignore
import os, asyncio, dotenv, asyncio # type: ignore
dotenv.load_dotenv()
async def main(data):
optoken = os.getenv("OP_SERVICE_ACCOUNT_TOKEN")
opclient = await onepass.authenticate(auth=optoken, integration_name="my name", integration_version="0.0.1")
secrets = await opclient.secrets.resolve_all(data)
for k, v in secrets.individual_responses.items():
if v.error:
print(f"{k}: {v.error}")
else:
print(f"{k}: {v.content.secret}")
asyncio.run(main(["op://opi/Bug_noArchivedItems/username"]))
asyncio.run(main(["op://opi/Bug_ArchivedItems/username"]))
Actual Behavior
op://opi/Bug_noArchivedItems/username: test_user
op://opi/Bug_ArchivedItems/username: type=<ResolveReferenceErrorTypes.TOO_MANY_ITEMS: 'tooManyItems'>
Expected Behavior
op://opi/Bug_noArchivedItems/username: test_user
op://opi/Bug_ArchivedItems/username: test_user
SDK version
onepassword-sdk 0.3.1
Additional information
Ideally they should behave the same, or at the very least we should have a documented option to make them work the same.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Activity
moward98 commentedon Sep 24, 2025
Hi @mg-oerp,
Thank you for raising this bug and sharing clear, repeatable steps to reproduce. I've been able to reproduce this bug and will make sure it gets noted within our team.
Thanks!
mg-oerp commentedon Oct 2, 2025
Thanks @moward98
Any idea if/when we might see an update? I'm chewing through my 1000 calls/hour in record time while testing my app ;)
mg-oerp commentedon Oct 7, 2025
Checking in again @moward98 , this is very critical for us. I'm thinking maybe I need to move to a different solution because I cannot finish dev work due to not having enough hourly requests due to this issue.
mg-oerp commentedon Oct 7, 2025
Theres even bugs in the rate limiting message so I have no idea how long I have to wait to connect again: not the missing amount of time. Very disappointed in this integration. I can't ask our devs to be using this so maybe we need to find a better solution.
[ERROR] 2025/10/07 14:35:48 Too many requests. Your client has been rate-limited. Try again in secondsmg-oerp commentedon Nov 3, 2025
2025-11-03 17:09:41,748 - uvicorn - INFO - Error message: [ERROR] 2025/11/03 17:09:41 could not read secret 'op://opi/inventory/notes': could not get item opi/inventory: Too many requests. Your client has been rate-limited. Try again in secondsWe're drowning over here. @moward98 is there a fix coming for this anytime soon? I guess maybe I will reach out an open a ticket through our 1password account, maybe it will get more traction?
eusef commentedon Nov 3, 2025
Hi @mg-oerp - could you please submit a support request over at support@onepassword.com? PLease reference that you are getting inconsistent results from the SDK and also please mention that you are hitting the rate limit.
Please include a link to this ticket, your account (either a domain or primary email) in that email as well. It'll help us reproduce the issue. Thanks ~Phil
Gerk commentedon Nov 3, 2025
Thanks Phil, will do. I've already got an open ticket going so I will include this information again.
eusef commentedon Nov 4, 2025
Hi @Gerk and @mg-oerp,
Just to get a quick update for you. The team is aware of this issue and there is a fix in process and I don't have an exact ETA just yet, but please keep an eye out for updates in the near future.
Thanks for your patience and I'll try to post updates back here soon.
Phil
hculea commentedon Nov 5, 2025
Hi @Gerk, happy to report that release 0.3.2 should fix your issue. You can quickly test with this script I put together:
I am going to be closing this issue, but do reopen in case the latest release does not address your problem! 😄
eusef commentedon Nov 5, 2025
cc: @mg-oerp (Please see @hculea 's message above :D)
mg-oerp commentedon Nov 5, 2025
I will test today and re-open if the issue persists, thanks @eusef for pushing this one along.