We built the auction house using metaplex and we had coded a refund function in the front end so that the user can get the money back when the purchase failed. But when the users tried to get a refund, it failed. The program worked fine for a few months, but we had this problem in recent days. Have no idea if it is caused because part of the smart contract of metaplex has been updated. Here is the transaction history.
#1 Auction House instruction
> Program log: Instruction: ExecuteSale
> Program log: panicked at 'index out of bounds: the len is 0 but the index is 0', src/lib.rs:1350:255
> Program Auction House consumed 25769 of 400000 compute units
> Program returned error: BPF program panicked
#2 Auction House instruction
#1 Auction House instruction
> Program log: Instruction: Cancel
> Program log: AnchorError occurred. Error Code: DerivedKeyInvalid. Error Number: 6013. Error Message: Derived key invalid.
> Program Auction House consumed 23681 of 600000 compute units
> Program returned error: custom program error: 0x177d
#2 Auction House instruction
#3 Auction House instruction
Does anyone have a solution for this problem?