Repository navigation
Tried the SDK (0.17.5): README example fails on account "researcher", search works well #150
Adekurnia1988
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I installed
vapi-network@0.17.5from npm and ran the README quickstart path plus the TypeScript SDK example. Here is what worked and the first things that tripped me up.Environment: Ubuntu 24.04.5 LTS (Linux 7.0.0-44-generic x86_64), Node.js v24.22.1, npm 10.9.4. The machine already had a vAPI vault with one linked account named
main.What worked
npm install vapi-networkwas clean and fast (1 package, ~3 s).vapi --helpandvapi search "weather"worked immediately against my existing vault. Search merged several catalogues and showed health + latency per listing, which made it easy to pick a live endpoint.createVapiClient({ account: "main" })created a client andvapi.call.search("Base DEX volume")returned a listing with price, network, method and provenance facts.First thing that broke: the README SDK example is not runnable as written
Running the example verbatim:
fails with:
A default
vapi setupcreates an account calledmain, but the example assumes an account namedresearcheralready exists and never shows thevapi accounts add researcherstep. The error message itself is good (it lists what exists), but a first-time reader hits a wall on line 1 of the only SDK example in the README. Switching the example toaccount: "main"(or adding one setup line before it) would make it copy-paste runnable.Second confusion: the example's
payid does not match whatsearchreturnsThe example continues with
vapi.call.pay({ id: "base-dex-volume", maxPriceUsd: 0.05 }), but the search result I got exposes aref(a URL likehttps://apexfaucet.xyz/api/x402/dex-volumes) plus acard, not anidfield with a slug likebase-dex-volume. I could not tell from the example output what value to pass asid. I stopped before thepaycall because this test run had a no-spend constraint, so I cannot say whetherpayaccepts theref— but the example would be much clearer if it passed a value taken from the search result it just printed.Small positives worth keeping
health,provenanceand fee facts inline; that is exactly what an agent needs before paying.Happy to re-run the example end-to-end (including a capped
pay) if a fixed version lands.All reactions