Sooz
02/12/2025, 2:59 PM965 | var _a;
966 | // Force clean-up, because some packages (e.g. nock) don't do this.
967 | request.destroy();
968 | // Node.js <= 12.18.2 mistakenly emits the response `end` first.
969 | (_a = request.res) === null || _a === void 0 ? void 0 : _a.removeAllListeners('end');
970 | error = error instanceof timed_out_1.TimeoutError ? new TimeoutError(error, this.timings, this) : new RequestError(error.message, error, this);
^
RequestError: Unable to connect. Is the computer able to access the url?
However the patch endpoint is working as expected. This started happening yesterday.Chiranjeet Mishra
02/12/2025, 8:55 PMSooz
02/13/2025, 1:31 AMimport { VapiClient } from "@vapi-ai/server-sdk";
const VAPI_PHONE_NUMBER_ID = "phone-number-id-here"
const VAPI_TOKEN = "your token here"
const vapiClient = new VapiClient({ token: VAPI_TOKEN });
await vapiClient.phoneNumbers.update(VAPI_PHONE_NUMBER_ID, {
server: {
url: `https://www.example.com/webhooks`,
secret: "supersecret",
},
});Sooz
02/13/2025, 1:32 AMChiranjeet Mishra
02/13/2025, 5:03 PM