Skip to main content

Variable: GATEWAY\_WRITE\_OUTCOME\_UNKNOWN\_REASONS

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / GATEWAY_WRITE_OUTCOME_UNKNOWN_REASONS

Variable: GATEWAY_WRITE_OUTCOME_UNKNOWN_REASONS

const GATEWAY_WRITE_OUTCOME_UNKNOWN_REASONS: readonly ["timeout", "transport"]

Defined in: packages/gala-core-sdk/dist/index.d.ts:110

Why the outcome of a gateway write is unknown (GATEWAY_WRITE_OUTCOME_UNKNOWN.params.reason). Both say the same thing about the write (it MAY have been applied: never send it again under a fresh key, check error.uniqueKey instead) and differ only in what happened to the request.

  • timeout: the POST exceeded requestTimeoutMs; the request may still be running.
  • transport: the POST failed before an answer was read (offline, connection reset, DNS, CORS, a body that broke off). The bytes may have reached the gateway.