-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
messageQueue
not showing Error when success
is no
#478
Comments
CC @KiChjang |
You mean on Polkadot or Kusama? What kind of messages are failing? Can you please post the links to the events and the messages themselves? |
Okay I assume you talk about this block https://polkadot.subscan.io/block/16477742?tab=event. The failed events in JSON format: failed DOT.json.txt failed KSM.json.txt |
@ggwpez I think more importantly, to be able to see the errors in Polkadot.js Apps would help debugging We know why it failed. Thanks |
The MQ pallet has no introspection into the error type of the underlying implementation of You can see the error in the batch I would like to close this since it is the wrong abstraction to solve your issue. |
you can replay block with chopsticks and enable runtime logging to see bit more details about the failing reason. if that’s not enough, you can add more loggings and override wasm to see additions logs |
@ggwpez this behavior changed with respect to the eventts that the ump queue was before throwing. An example of this is block 16483792. Here we had a We did not find a way to retrieve the execution error anywhere right now other than using chopsticks with additional logs like @xlc suggested. |
Debugging XCM failures is already not a straight-forward thing, so all facilities are welcome |
Without needing to use chopsticks, we need to be able to understand why the message fails to easily debug these things. Why remove the error? Now it becomes 100x harder to debug. To drive XCM usability we need to make it easier and ensure it is a "welcoming" experience... |
There is still an overweight error that the message processor can return: Overweight(Weight). the standard message processor should also return that. I dont know how exactly |
We are not trying to remove errors or make debugging harder. Aggregating all possible errors from any possible implementation into one huge enum just does not sound like a good idea to me either. The MQ pallet is very abstract and generic. It should not need to know about any downstream error sources besides the ones defined in its trait: ProcessMessageError. |
Ah I see, I understand the problem better now. What about implementing the ProcessMessage trait to pallet-xcm? that way pallet-xcm could deposit an event showing the xcm-execution error before returning |
I understand but as users of XCM, we create tooling and debugging mechanisms expecting certain behaviors. If something is changed upstream, there should be a description of how to act or work around this new behavior. Do you know a way I can get the error for a given message? In another scenario I'm testing I get |
@ggwpez another issue that is not straightforward is how to weight a message for example. I would like to weight the following XCM messages that will be executed in the relay chain:
|
There are some XCM messages that are failing to execute on the relay chain. We think we know where the issues lies but it is somewhat hard to debug this now that we can't see the execution error of the XCM messages.
Any idea how we can see this now?
Thanks
The text was updated successfully, but these errors were encountered: