{"record":{"id":"dbc6ffff9f9b4d5a","repo":"antiwork/gumroad","slug":"something-went-wrong-dbc6ff","errorCode":null,"errorMessage":"Something went wrong.","messagePattern":"Something went wrong\\.","errorType":"exception","errorClass":"ResponseError","httpStatus":null,"severity":"error","filePath":"app/javascript/data/balance.ts","lineNumber":17,"sourceCode":"import typia from \"typia\";\n\nimport { request, ResponseError } from \"$app/utils/request\";\n\nexport type ExportablePayout = {\n  id: string;\n  date_formatted: string;\n};\n\nexport const getExportablePayouts = async (year: number) => {\n  const response = await request({\n    method: \"GET\",\n    url: Routes.payouts_exportables_path({ year }),\n    accept: \"json\",\n  });\n\n  if (!response.ok) throw new ResponseError();\n\n  return typia.assert<{\n    selected_year: number;\n    years_with_payouts: number[];\n    payouts_in_selected_year: ExportablePayout[];\n  }>(await response.json());\n};\n\nexport const exportPayouts = async (payoutIds: string[]) => {\n  const response = await request({\n    method: \"POST\",\n    url: Routes.payouts_exports_path(),\n    data: { payout_ids: payoutIds },\n    accept: \"json\",\n  });\n\n  if (!response.ok) throw new ResponseError();\n};","sourceCodeStart":1,"sourceCodeEnd":35,"githubUrl":"https://github.com/antiwork/gumroad/blob/afeacbd394069a1cbf0c6c50ee8e900925050370/app/javascript/data/balance.ts#L1-L35","documentation":"Error \"Something went wrong.\" thrown in antiwork/gumroad.","triggerScenarios":"Thrown at app/javascript/data/balance.ts:17 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"}