1Password / onepassword-sdk-js

The official JavaScript SDK for 1Password
https://developer.1password.com/docs/sdks/
MIT License
41 stars 2 forks source link

Error resolving secret reference with '.' in the title. #88

Closed itzTheMeow closed 4 days ago

itzTheMeow commented 2 weeks ago

Scenario & Reproduction Steps

Getting this error:

Error: error resolving secret reference: secret reference has invalid format - must be "op://<vault>/<item>/[section/]field"

when fetching secrets with a . in the field name possibly similar to this from the python SDK

if i change the name of the field to remove the . and change the corresponding url, it fetches properly

this works: op://Vault/Item/testname this doesn't: op://Vault/Item/test.name

Actual Behavior

not retreiving values with . in field name

Expected Behavior

No response

SDK version

0.1.0-beta.11

Additional information

No response

hculea commented 1 week ago

Hey @itzTheMeow - thanks for reaching out. This bug should no longer be present in the latest versions of the SDK. Can you update to v0.1.1 (npm update @1password/sdk) and let us know if this is still reproducible?

Thanks!

hculea commented 4 days ago

@itzTheMeow I'm going to close this ticket, please do reopen if you still bump into this problem!