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

This contract on Polygon uses Solidity custom errors:

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

There was one such event in block, 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