{"record":{"id":"9ddbf638c449b38d","repo":"usebruno/bruno","slug":"file-does-not-exist-source","errorCode":null,"errorMessage":"File does not exist: ${source}","messagePattern":"File does not exist: (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-cli/src/commands/import.js","lineNumber":128,"sourceCode":"          || error.code === 'ERR_TLS_CERT_ALTNAME_INVALID') {\n          throw new Error(`SSL Certificate error: ${error.code}. Try using --insecure if you trust this source.`);\n        } else if (error.response) {\n          throw new Error(`Failed to fetch from URL: ${error.response.status} ${error.response.statusText}`);\n        } else if (error.request) {\n          throw new Error(`No response received from server. Check the URL and your network connection.`);\n        } else {\n          throw new Error(`Error fetching URL: ${error.message}`);\n        }\n      }\n\n      // If response is already an object, return it directly\n      if (typeof content === 'object' && content !== null) {\n        return content;\n      }\n    } else {\n      // Handle file input\n      if (!await exists(source)) {\n        throw new Error(`File does not exist: ${source}`);\n      }\n      content = fs.readFileSync(source, 'utf8');\n    }\n\n    // If content is a string, try to parse as JSON or YAML\n    if (typeof content === 'string') {\n      try {\n        return JSON.parse(content);\n      } catch (jsonError) {\n        try {\n          return jsyaml.load(content);\n        } catch (yamlError) {\n          throw new Error('Failed to parse content as JSON or YAML');\n        }\n      }\n    }\n\n    return content;","sourceCodeStart":110,"sourceCodeEnd":146,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-cli/src/commands/import.js#L110-L146","documentation":"Error \"File does not exist: ${source}\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-cli/src/commands/import.js:128 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the file path for typos and that the file exists.","Use an absolute path to the collection file."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}