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

hi, I tried to call the createClient function in nodejs but then got an error. #89

Open
AlexShui opened this issue Sep 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@AlexShui
Copy link

AlexShui commented Sep 9, 2024

Scenario & Reproduction Steps

I just get the service key and then tried in my nodejs code. but I can createClient. I used the right key but still got error.
the error said
authentication error: http error: error issuing the request with reqwest: bad data provided to builder

Actual Behavior

image

image

Expected Behavior

No response

SDK version

"@1password/sdk": "^0.1.1",

Additional information

No response

@AlexShui AlexShui added the bug Something isn't working label Sep 9, 2024
@AndyTitu
Copy link
Contributor

AndyTitu commented Sep 12, 2024

@AlexShui what nodeJS version are you using? We're supporting v18 and above.

@AndyTitu
Copy link
Contributor

AndyTitu commented Sep 12, 2024

@AlexShui could you decode you service account token using echo <your token> | base64 --decode and let us know how your signInAdress looks like? That URL is not sensitive, although it may be personal, so you can omit your exact domain name if you want, as we're mostly interested in the overall format of that url. But we think the issue might have something to do with a particularity of your signin address.

@hculea
Copy link
Member

hculea commented Sep 12, 2024

@AlexShui to apply what Andi recommended, make sure to strip the ops_ prefix from your token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants