Kong/insomnia · error
URL is required
Error message
URL is required
What it means
Error "URL is required" thrown in Kong/insomnia.
Source
Thrown at packages/insomnia/src/main/network/websocket.ts:196
const workspaceMeta = await services.workspaceMeta.getOrCreateByParentId(options.workspaceId);
// fallback to base environment
const activeEnvironmentId = workspaceMeta.activeEnvironmentId;
const activeEnvironment = activeEnvironmentId && (await services.environment.getById(activeEnvironmentId));
const environment = activeEnvironment || (await services.environment.getOrCreateForParentId(options.workspaceId));
invariant(environment, 'failed to find environment ' + activeEnvironmentId);
const responseEnvironmentId = environment ? environment._id : null;
const caCert = await services.caCertificate.getByParentId(options.workspaceId);
const caCertficatePath = caCert && !caCert.disabled ? caCert.path : null;
// attempt to read CA Certificate PEM from disk, fallback to root certificates
// allow to read the file as it is chosen by user
const caCertificate =
(caCertficatePath && (await insecureReadFile(caCertficatePath))) || tls.rootCertificates.join('\n');
try {
if (!options.url) {
throw new Error('URL is required');
}
const readyStateChannel = `${protocolName}.${request._id}.${REALTIME_EVENTS_CHANNELS.READY_STATE}`;
const reduceArrayToLowerCaseKeyedDictionary = (
acc: Record<string, string>,
{ name, value }: BaseWebSocketRequest['headers'][0],
) => ({ ...acc, [name.toLowerCase() || '']: value || '' });
const headers = options.headers;
let url = options.url;
let authCookie = null;
if (!options.authentication.disabled) {
if (options.authentication.type === 'basic') {
const { username, password, useISO88591 } = options.authentication;
const encoding = useISO88591 ? 'latin1' : 'utf8';
headers.push(getBasicAuthHeader(username, password, encoding));
}
if (options.authentication.type === 'apikey') {
const { key = '', value = '', addTo } = options.authentication; // Ensure key is not undefinedView on GitHub (pinned to d9bb2b0142)
When it happens
Trigger: Thrown at packages/insomnia/src/main/network/websocket.ts:196 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26).
Data as JSON: /api/errors/25a4a84d33977851.
Report an issue: GitHub.