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

401 Unauthorized and INVALID_SIGNATURE on Linux #64

Open
dematron opened this issue Jan 18, 2021 · 2 comments
Open

401 Unauthorized and INVALID_SIGNATURE on Linux #64

dematron opened this issue Jan 18, 2021 · 2 comments

Comments

@dematron
Copy link
Contributor

Hello.
While using your project I find a very strange behavior of this part of code in client.go
preSignatura := []string{strconv.Itoa(int(nonce)), req.URL.String(), method, payloadHash}
If I run my project on macOS - everything is normal, but when I try to run the same code on Linux (f.e. Raspbian on RPi4), I've got 401 Unauthorized and INVALID_SIGNATURE in debug.
Response is like this
[381487000 https://api.bittrex.com/v3/balances GET hashed_part_here]
Very strange timestamp.
I found that if I refactor your code like this
preSignatura := []string{fmt.Sprintf("%d", nonce), req.URL.String(), method, payloadHash}
everything work perfect and response is correct.
May be you know why it's working so strange?

@PierreRAFFA
Copy link

It looks like the issue is still there for linux

@toorop
Copy link
Owner

toorop commented Nov 25, 2021

Can someone make a PR ? Thx.

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