{"record":{"id":"32baee918fb2ee08","repo":"Kong/insomnia","slug":"contentinfo-header-content-type-value-is-blank","errorCode":null,"errorMessage":"contentInfo: header Content-Type value is blank","messagePattern":"contentInfo: header Content-Type value is blank","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/insomnia-scripting-environment/src/objects/response.ts","lineNumber":107,"sourceCode":"    });\n  }\n\n  static isResponse(obj: object) {\n    return '_kind' in obj && obj._kind === 'Response';\n  }\n\n  contentInfo(): ResponseContentInfo {\n    const mimeInfo = {\n      mimeType: 'application/octet-stream',\n      mimeFormat: '', // TODO: it's definition is unknown\n      charset: 'utf8',\n    };\n\n    const contentType = this.headers.find(header => header.key === 'Content-Type');\n    if (contentType) {\n      const directives = contentType.valueOf().split('; ');\n      if (directives.length === 0) {\n        throw new Error('contentInfo: header Content-Type value is blank');\n      } else {\n        const mimeType = directives[0];\n        if (!mimeType) {\n          throw new Error('contentInfo: mime type in header Content-Type is invalid');\n        }\n        mimeInfo.mimeType = mimeType;\n        directives.forEach(dir => {\n          if (dir.startsWith('charset')) {\n            mimeInfo.charset = dir.slice(dir.indexOf('=') + 1);\n          }\n        });\n      }\n    }\n\n    const fileInfo = {\n      extension: '',\n      name: 'unknown',\n    };","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia-scripting-environment/src/objects/response.ts#L89-L125","documentation":"Error \"contentInfo: header Content-Type value is blank\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia-scripting-environment/src/objects/response.ts:107 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}