Common Lab Errors
Environment Errors
Section titled “Environment Errors”Common issues:
- Wrong Node.js version
- Package manager mismatch
- Missing dependencies
- Port already in use
- Local chain not running
Recommended response:
- Confirm Node.js version
- Reinstall dependencies
- Restart the local chain
- Read the command output before asking AI to debug
Wallet Errors
Section titled “Wallet Errors”Common issues:
- Wallet connected to the wrong network
- No testnet ETH
- Rejected wallet signature
- Stale frontend wallet state
Recommended response:
- Confirm the selected network
- Check faucet instructions
- Refresh the dApp
- Reconnect the wallet
Contract Errors
Section titled “Contract Errors”Common issues:
- Solidity compiler version mismatch
- Missing import
- Contract not deployed
- ABI not refreshed
- Wrong contract address in the frontend
Recommended response:
- Recompile contracts
- Re-run deployment
- Confirm generated artifacts
- Confirm frontend network config
Transaction Errors
Section titled “Transaction Errors”Common issues:
- Insufficient funds
- Transaction reverted
- Wrong signer
- Missing approval
- Gas estimation failure
Recommended response:
- Check the revert reason
- Confirm token allowance
- Confirm the signer account
- Inspect the transaction in a block explorer
AI-related Errors
Section titled “AI-related Errors”Common issues:
- AI assumes the wrong framework version
- AI invents APIs or files
- AI suggests mainnet deployment
- AI asks for private keys or secrets
Recommended response:
- Ask AI to read the current docs first
- Verify files and commands locally
- Keep all private keys out of chat
- Stay on testnets