Developers Forum for XinFin XDC Network

ncode
ncode

Posted on • Updated on

[Closed]Error Strings Support in XDC

Recently Since last week, The RPC's seems to have changed, and the error message strings are no longer working properly.
For eg:
if there is an Ownable error intially it use to return

"Ownable Caller is not the owner"

How ever since the last week post XDCPay 2.0 beta release the error statements are not user friendly

Image description

EDIT
We are using 0x supported RPC's , however the error is coming irrespectively of the rpc under use, If we use XDCPay then the error strings are coming as blank as shown below.

The error string is different however when using MetaMask

And Finally this is how the error string looks when using XDCPay2.0

Discussion (5)

Collapse
ruslan_wing profile image
ruslan wing

please add the RPC manually for 0x prefix output please use erpc.xinfin.network and for xdc prefix rpc please use rpc.xinfin.network

Collapse
ncode profile image
ncode Author

Hi @ruslan_wing , We are using 0x supported RPC's , however the error is coming irrespectively of the rpc under use, If we use XDCPay then the error strings are coming as blank as shown below.

The error string is different however when using MetaMask

And Finally this is how the error string looks when using XDCPay2.0

Collapse
rupps_blocksscan profile image
Rupali Mestry

Hello,

If the issue is still persist then please let us know about the it so that the team can resolve it on priority. It will be grateful to get an update on the above issue.

Thank You

Collapse
ncode profile image
ncode Author

You can also check this new thread, which also talks about how the network behaves differently when an error occurs: xdc.dev/ncode/error-revert-stateme...

Collapse
ncode profile image
ncode Author

Hi , We have tried this with XDCPay but it just seems to return Internal JSON RPC Error, However while working with Metamask or XDCPay 2.0 if any error comes it also shows the reason of failing