Could not find register event for the winning preferred relay, v2.2.0

Hi I set up gsn provider and everything worked over “window.ethereum” provider. I added wallet feature to my dapp, used wallet connect provider and I’m getting this error. I tried to send transaction without wrapping wallet connect provider with gsnProvider and It worked, but it didn’t work with gsn provider.

   const walletConnectProvider = new WalletConnectProvider({
      infuraId: "27e484dcd9e3efcfd25a83a78777cdf1", // Required
      rpc: {
        <id>: <rpc>,
    await walletConnectProvider.enable();

   const gsnProvider = await RelayProvider.newProvider({
      provider: walletConnectProvider, // worked with (window as any).ethereum
      config: {

    const provider = new ethers.providers.Web3Provider(gsnProvider as any);
    const signer = await provider.getSigner();
    const contract = new ethers.Contract(...);
    const tx = await contract.populateTransaction.<func_name>(...);
    await (await signer.sendTransaction(tx)).wait();

I have resolved the issue. Previously, I was working on it on localhost using HTTP, but after switching to HTTPS, the transaction went through.

Just remove preferedRelayers from config :grinning: