{"record":{"id":"09a8ba344ce43d23","repo":"antiwork/gumroad","slug":"sorry-something-went-wrong-please-try-again","errorCode":null,"errorMessage":"Sorry, something went wrong. Please try again.","messagePattern":"Sorry, something went wrong\\. Please try again\\.","errorType":"exception","errorClass":"ResponseError","httpStatus":null,"severity":"error","filePath":"app/javascript/data/affiliated_products.ts","lineNumber":74,"sourceCode":"    method: \"DELETE\",\n    accept: \"json\",\n    url: Routes.products_affiliated_path(affiliateId, { query, sort }),\n  });\n  // A stale row 404s with the HTML error page, so parse only once the response is\n  // known good — a JSON parse failure here would escape the caller's catch and\n  // strand the confirm modal in its in-flight state.\n  if (response.status === 404) throw new AffiliationAlreadyRemovedError();\n  if (!response.ok) {\n    const body = await response.text();\n    let message = \"Sorry, something went wrong. Please try again.\";\n    try {\n      // A role that may view this page but not remove affiliations gets a 401 naming the role —\n      // worth showing rather than replacing with a generic failure.\n      message = typia.assert<{ error: string }>(JSON.parse(body)).error;\n    } catch {\n      /* non-JSON body: keep the generic message */\n    }\n    throw new ResponseError(message);\n  }\n  return typia.assert<AffiliationRemovedData>(await response.json());\n};\n","sourceCodeStart":56,"sourceCodeEnd":78,"githubUrl":"https://github.com/antiwork/gumroad/blob/afeacbd394069a1cbf0c6c50ee8e900925050370/app/javascript/data/affiliated_products.ts#L56-L78","documentation":"Error \"Sorry, something went wrong. Please try again.\" thrown in antiwork/gumroad.","triggerScenarios":"Thrown at app/javascript/data/affiliated_products.ts:74 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"}