Skip to content
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

Gas Errors Are Unhelpful #1614

Open
Luzzotica opened this issue Feb 23, 2023 · 5 comments
Open

Gas Errors Are Unhelpful #1614

Luzzotica opened this issue Feb 23, 2023 · 5 comments

Comments

@Luzzotica
Copy link

Right now, if you make one of the following mistakes with gas:

  1. Send has no gas capability, but has other capabilities in the clist of the Pact Command
  2. Sender has no funds available to pay for gas
  3. Sender's account doesn't exist on the target chain
  4. Too much gas requested (For example, requesting more than 150k or 180k gas)

You receive this error:
Screen Shot 2023-02-23 at 12 16 51 PM

SyntaxError: Unexpected token 'V', "validation"... is not valid JSON

This error is not helpful when trying to debug the actual problem: Gas.
I spent more than a couple of hours just trying to figure out what this error meant.
Now that I know I can quickly iterate over the 4 to make sure they are all satisfied and debug quickly.

But the error needs to be more clear.

@edmundnoble
Copy link
Contributor

Hi @Luzzotica, is this coming from pact-lang-api or perhaps chainweaver? If so, please move this issue to the relevant repository.

@Luzzotica
Copy link
Author

It is not, that screenshot is from KadenaKode

The above error is the one you get from submitting a transaction to the Pact API.

@Luzzotica
Copy link
Author

@edmundnoble Try it

@edmundnoble
Copy link
Contributor

Do you see this sending the transaction or localing it?

@chessai
Copy link
Contributor

chessai commented Jan 9, 2024

@Luzzotica is this still an issue? Those links don't work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants