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

Invalid character in header content ["x-signature"] #95

Open
maminebnr opened this issue Oct 21, 2021 · 2 comments
Open

Invalid character in header content ["x-signature"] #95

maminebnr opened this issue Oct 21, 2021 · 2 comments

Comments

@maminebnr
Copy link

maminebnr commented Oct 21, 2021

hello
i have a problem when i use this method bitauth.sign() , I put it in the request header i have this error :
" TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["x-signature"]"
any help please thanks
image

@svashish305
Copy link

@maminebnr were you able to fix this? any update or workaround as I'm facing same issue after generating private key using BitPaySetup script from their nodejs sdk, and token is paired to dashboard

@steve-24school
Copy link

bitauth.sign(data,key) returns an array

convert the array to hex string
bitauth.sign(data,key).toString("hex")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants