Sentinel `HTTP post /subscriber-test failed: invalid fragment object` error in contract with Solidity Custom Errors

This contract on Polygon uses Solidity custom errors: https://polygonscan.com/address/0x022F3C027572FE1b321ba7a7844ab77aC4193650

I have a Sentinel set up that listens for SaleCompleted(uint256, address, address, address, uint256) events.

There was one such event in block https://polygonscan.com/block/23057634, however we did not get a notification.

If I try to backtest this condition in the Defender UI, I get the following error:

Error: HTTP post /subscriber-test failed: invalid fragment object (argument="value", value={"inputs":[{"internalType":"uint256","name":"availableQuantity","type":"uint256"}],"name":"AvailableQuantityInsuficient","type":"error"}, code=INVALID_ARGUMENT, version=abi/5.0.9)

Can you suggest a workaround? Thank you!

Hey @karmacoma! We're currently looking into this. In the meantime, as a workaround, you can recreate your Sentinel and manually edit your contract's ABI to remove the custom error definitions.

1 Like

Thanks @spalladino, that worked :+1:

1 Like