{"record":{"id":"66a771d568e8b0ed","repo":"antiwork/gumroad","slug":"something-went-wrong-66a771","errorCode":null,"errorMessage":"Something went wrong.","messagePattern":"Something went wrong\\.","errorType":"exception","errorClass":"ResponseError","httpStatus":null,"severity":"error","filePath":"app/javascript/data/affiliates.ts","lineNumber":53,"sourceCode":"  email: string;\n  promotion: string;\n  date: string;\n  state: \"created\" | \"approved\" | \"ignored\";\n};\n\nexport type AffiliateStatistics = {\n  total_volume_cents: number;\n  products: Record<number, { volume_cents: number; sales_count: number }>;\n};\n\nexport const getStatistics = (id: string) =>\n  request({\n    method: \"GET\",\n    accept: \"json\",\n    url: Routes.statistics_affiliate_path(id),\n  })\n    .then((res) => {\n      if (!res.ok) throw new ResponseError();\n      return res.json();\n    })\n    .then((json) => typia.assert<AffiliateStatistics>(json));\n","sourceCodeStart":35,"sourceCodeEnd":57,"githubUrl":"https://github.com/antiwork/gumroad/blob/afeacbd394069a1cbf0c6c50ee8e900925050370/app/javascript/data/affiliates.ts#L35-L57","documentation":"Error \"Something went wrong.\" thrown in antiwork/gumroad.","triggerScenarios":"Thrown at app/javascript/data/affiliates.ts:53 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":"afeacbd394069a1cbf0c6c50ee8e900925050370","analyzedAt":"2026-08-21T17:58:52.159Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}