antiwork/gumroad · error · ResponseError

Something went wrong.

Error message

Something went wrong.

What it means

Error "Something went wrong." thrown in antiwork/gumroad.

Source

Thrown at app/javascript/data/affiliated_products.ts:20

import { AbortError, request, ResponseError } from "$app/utils/request";

import { AffiliatedProduct, AffiliatedPageStats, SortKey } from "$app/components/AffiliatedPage";
import { PaginationProps } from "$app/components/Pagination";
import { Sort } from "$app/components/useSortingTableDriver";

type PagedAffiliatedProductsData = {
  affiliated_products: AffiliatedProduct[];
  pagination: PaginationProps;
};

// An abort landing after fetch resolved but before the body finished reading rejects with the
// platform DOMException, outside request()'s conversion boundary. Callers only recognize the app's
// own AbortError, so an unconverted one escapes their cancellation branch and strands the loader.
const convertPlatformAbort = (e: unknown): never => {
  if (e instanceof DOMException && e.name === "AbortError") throw new AbortError();
  if (e instanceof AbortError || e instanceof ResponseError) throw e;
  throw new ResponseError();
};

export const getPagedAffiliatedProducts = (page?: number, query?: string, sort?: Sort<SortKey> | null) => {
  const abort = new AbortController();
  const response = request({
    method: "GET",
    accept: "json",
    url: Routes.products_affiliated_index_path({ page, query, sort }),
    abortSignal: abort.signal,
  })
    .then((res) => res.json().catch(convertPlatformAbort))
    .then((json) => typia.assert<PagedAffiliatedProductsData>(json));

  return {
    response,
    cancel: () => abort.abort(),
  };
};

View on GitHub (pinned to afeacbd394)

When it happens

Trigger: Thrown at app/javascript/data/affiliated_products.ts:20 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of antiwork/gumroad@afeacbd394 (2026-08-21). Data as JSON: /api/errors/26f80bd1ad31d67a. Report an issue: GitHub.