Sync_historical issue on Sync and Watch Contract Events Plugin

I have a plugin (Sync and Watch Contract Events), where I enabled sync_historical, but I am getting only current data not able to get previous events data in moralis database.

server URL :: https://tlbpwclfhgqh.bigmoralis.com:2053/server

eventName :: BidSuccess(address,uint256,uint256,uint8)

but using web3 api I am getting response

Hi,
Can you also paste that web3 api query so that I can copy paste what you have there?

Sure!

curl -X 'POST' \
  'https://deep-index.moralis.io/api/v2/0xCd05B1e7623ecF294CC116f9eC22b6Bb124b9e77/events?chain=bsc%20testnet&topic=BidSuccess%28address%2Cuint256%2Cuint256%2Cuint8%29' \
  -H 'accept: application/json' \
  -H 'X-API-Key: ' \
  -H 'Content-Type: application/json' \
  -d '{
  "anonymous": false,
  "inputs": [
    {
      "indexed": true,
      "internalType": "address",
      "name": "_from",
      "type": "address"
    },
    {
      "indexed": false,
      "internalType": "uint256",
      "name": "_treeId",
      "type": "uint256"
    },
    {
      "indexed": false,
      "internalType": "uint256",
      "name": "_value",
      "type": "uint256"
    },
    {
      "indexed": false,
      "internalType": "enum Auction.PaymentType",
      "name": "_paymentType",
      "type": "uint8"
    }
  ],
  "name": "BidSuccess",
  "type": "event"
}'

@Ravi, if you use this ABI it will work fine:

{
  "anonymous": false,
  "inputs": [
    {
      "indexed": true,
      "internalType": "address",
      "name": "from",
      "type": "address"
    },
    {
      "indexed": false,
      "internalType": "uint256",
      "name": "treeId",
      "type": "uint256"
    },
    {
      "indexed": false,
      "internalType": "uint256",
      "name": "value",
      "type": "uint256"
    },
    {
      "indexed": false,
      "internalType": "enum Auction.PaymentType",
      "name": "paymentType",
      "type": "uint8"
    }
  ],
  "name": "BidSuccess",
  "type": "event"
}

The difference is that this ABI doesn’t have names that start with _.