5. Common Issues and Solutions
Action Not Triggering
Problem: You type a message but the action doesn't respond.
Likely causes:
The action isn't registered (forgot to add
runtime.registerAction())The validate function returns false for your test input
Another action is catching the message first
How to debug:
Test your VeChain function separately - Run the VeChain SDK function in isolation to verify it works before testing the full action.
Check your action setup in src/index.ts:
Verify the action is registered:
runtime.registerAction(yourAction)Check for duplicated keywords in
similesacross multiple actionsEnsure all required parameters are present (name, similes, description, validate, handler, examples)
VeChain Connection Fails
Problem: Getting "Failed to fetch balance" or similar errors.
Likely causes:
Wrong node URL in
.envInvalid address format
How to fix:
Check your
.envhas the correctVECHAIN_NODE_URLTry the URL in your browser - you should see JSON data
Verify the address is a valid VeChain wallet address
Dependencies Missing
Problem:Cannot find module '@vechain/sdk-network' or similar.
Solution:
If the error persists:
Build Errors
Problem: TypeScript compilation errors when running bun run build.
Common causes:
Missing type definitions
Syntax errors in your code
Import paths are wrong (should be relative, like
'../vechain/balance')
How to fix: Read the error message carefully - TypeScript usually tells you exactly what's wrong and where. Fix that file and run build again.
Join our Telegram