Facing weird issue while creating a stream

I got this message while creating a stream. Idk, I ran the same code with another contract, it worked fine but with this new contract it’s getting some problem. Can anyone help me out?

message: β€˜[S0001] Cannot decode the logs. No logs found in the webhook, or invalid webhook provided.’,

Hi @Arnab
Can you share the stream data for which you received this error.

0xffc69776132C60b418D6F8b7Cd6099075D0C398C for this contract I am trying to fetch the TokenMinted event

It’s currently deployed in Goerli Testnet

Can you also share your backend code which threw this error or which you are using to decode logs?

I am able to get that same error when I try to read logs from this test stream, which is expected because there is no ABI or Log data in this object.

So If that is your case, then you can add an if the condition to check if the ABI or Logs array is empty and If they are empty dont decode the logs.

{
    abi: [],
    block: {
      hash: "",
      number: "",
      timestamp: "",
    },
    txs: [],
    txsInternal: [],
    tag: "",
    streamId: "",
    logs: [],
    chainId: "",
    confirmed: true,
    retries: 0,
    erc20Approvals: [],
    erc20Transfers: [],
    nftApprovals: {
      ERC721: [],
      ERC1155: [],
    },
    nftTransfers: [],
  }