We are unable to use the relay with ethers.js on the mainnet.
It was working really well on BSC testnet.
Environment
We use this relay 0xcd4017bba43bf15051d0bbb94159b05e2b3b5958 with Binance BSC
Details
Failed to get a token for the API key "xxx"
{
code: 'InvalidParameterException',
name: 'InvalidParameterException',
message: "2 validation errors detected: Value at 'userAlias' failed to satisfy constraint: Member must satisfy regular expression pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+; Value at 'userName' failed to satisfy constraint: Member must satisfy regular expression pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+"
}
Code to reproduce
const credentials = {
apiKey: "xxx",
apiSecret: "xxx",
};
const relayProvider = new DefenderRelayProvider(credentials);
const relaySigner = new DefenderRelaySigner(credentials, relayProvider, {
speed: 'fastest',
validForSeconds: this.defenderRelayTimeout,
});