Defender Relay - 'userAlias' failed to satisfy constraint

We are unable to use the relay with ethers.js on the mainnet.
It was working really well on BSC testnet.

:computer: Environment
We use this relay 0xcd4017bba43bf15051d0bbb94159b05e2b3b5958 with Binance BSC

:memo: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}]+"
}

:1234: 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,
});

Hi @hesiodeis

Welcome!

I was not able to reproduce above mentioned error.

Could you try to generate new Relayer API keys and use them within your script? Also, please verify that correct values are passed to new DefenderRelayProvider(credentials).

Best,
Zeljko

Thanks a lot for your answer. The problem was actually an escaping character in our environnement variable. Totally on our side :slight_smile: