Question on APIError(code=-1022): Signature for this request is not valid

Hey
I’m trying to do transfers using /sapi/v1/sub-account/transfer/subToSub and I keep facing the error.
I did some debugging with signature, it looks like the error is present when @ is added to toEmail in data set like geek-ras@gmail.com. - was okey, but @ was the culprit from what I checked.

when I put just random string on toEmail, I got ‘incorrect email addr’, which refers that the signature was matched, I also verified this.

Is there a workaround to avoid facing this error?

btw, I’m using the same method of generating signature for the other scripts and they’re all working fine apart from this endpoint.

Hey,
Would it be possible that you share your code so that we have more information on how you make the request?

I use the same as the one in your github
hmac_sha256_signature.py

I was referring to the code that generates the URL.

what do you mean by url generated?

The signature is added to a URL that is sent to a Binance server. Could you share the code that generates the URL or at least the URL itself?