R
RunPod9mo ago
Andrew

Runpod api npm doesn't work

I'm following https://doc.runpod.io/reference/health-check to call runpod with npm api package
const sdk = require('api')('@runpod/v1.0#18nw21lj8lwwiy');
sdk.healthCheck({endpoint_id: 'yy'})
const sdk = require('api')('@runpod/v1.0#18nw21lj8lwwiy');
sdk.healthCheck({endpoint_id: 'yy'})
But installing @runpod/v1.0#18nw21lj8lwwiy failed
% npx api install @runpod/v1.0#18nw21lj8lwwiy
✔ What language would you like to generate an SDK for? › TypeScript
✔ Fetching your API
✖ Generating your SDK
Sorry, this OpenAPI definition does not have any operation paths to generate an SDK for.
% npx api install @runpod/v1.0#18nw21lj8lwwiy
✔ What language would you like to generate an SDK for? › TypeScript
✔ Fetching your API
✖ Generating your SDK
Sorry, this OpenAPI definition does not have any operation paths to generate an SDK for.
RunPod
Health Check
Retrieve endpoint statistics.
1 Reply
Justin Merrell
Justin Merrell9mo ago
That is an auto generated package from our old docs that has some issues. We will be replacing it with our own official RunPod libraries. In the meantime, you can gather the information by making direct requests to the URL. Take a look here for an example: https://docs.runpod.io/tutorials/ai-apis/run-your-first#health
Want results from more Discord servers?
Add your server