You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For debugging purposes, would be useful to optionally (with a commandline argument) also print out the equivalent API RPC command that can be run directly on the commandline (via httppie for instance)
These commands allows diagnosing if the issue is before the API RPC call (error in configuration or near/near-cli or near/near-api-js) or after (errors with API RPC in near/nearcore or wrong usage of API RPC)
These httppie commands are not easy to manually build by hand, so printing out an equivalent command that can simply be copied pasted would be extremely useful
Example httppie command (as can be seen to be quite verbose) that it should print out.
It should be a simply using the values of the variables request and response to optionally log out to stdout both the proper request and returned response in the httppie format.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
near-api-js builts on top of:
For debugging purposes, would be useful to optionally (with a commandline argument) also print out the equivalent API RPC command that can be run directly on the commandline (via httppie for instance)
These commands allows diagnosing if the issue is before the API RPC call (error in configuration or near/near-cli or near/near-api-js) or after (errors with API RPC in near/nearcore or wrong usage of API RPC)
These httppie commands are not easy to manually build by hand, so printing out an equivalent command that can simply be copied pasted would be extremely useful
Example httppie command (as can be seen to be quite verbose) that it should print out.
It should be a simply using the values of the variables request and response to optionally log out to stdout both the proper request and returned response in the httppie format.
near-api-js/packages/near-api-js/src/utils/web.ts
Lines 30 to 34 in 232e35e
Beta Was this translation helpful? Give feedback.
All reactions