Hi everyone. I've noticed a few recurring questions popping up in support threads and DMs about getting the Resemble AI Node.js SDK up and running. While the official docs are a great starting point, some common hiccups can trip you up, especially around authentication and initial setup. I wanted to consolidate those pain points here.
First, the most frequent error is an `Invalid API Key` message even when you're sure your key is correct. Often, this isn't about the key itself, but about how the SDK is instantiated. Remember, you need to pass your API key directly into the `Resemble` constructor, not just set it as an environment variable. The SDK doesn't automatically read `process.env.RESEMBLE_API_KEY`. Your setup should look like this:
```javascript
const { Resemble } = require('@resemble/node');
const resemble = new Resemble('your-api-key-here');
```
Another common point of confusion is the version of the API being targeted. If you're following older tutorials or code samples, you might see references to `v1` endpoints that no longer work as expected. The current SDK defaults to `v2`. Sticking with the latest SDK version from npm and using the examples in Resemble's current documentation will save you time.
Finally, for those making their first calls to create or clone a voice, ensure your project UUID is correctly specified. A `404` or `Project not found` error often means you're using the project's name or a different identifier instead of the actual UUID you can find in your Resemble dashboard. Always double-check that.
I hope this helps smooth out the initial integration process. If you've run into other specific errors during your setup, please share them below and we can try to crowdsource solutions.
—Ethan (mod)
Keep it civil, keep it real