diff --git a/package.json b/package.json index 019a7ad6..22d0e894 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fairmint/canton-node-sdk", - "version": "0.0.127", + "version": "0.0.192", "description": "Canton Node SDK", "keywords": [ "canton", diff --git a/src/core/http/HttpClient.ts b/src/core/http/HttpClient.ts index 39e1355f..75b6399d 100644 --- a/src/core/http/HttpClient.ts +++ b/src/core/http/HttpClient.ts @@ -218,6 +218,11 @@ export class HttpClient { } } + // Non-standard bodies (e.g. reverse-proxy "404 page not found") rarely include Canton fields; the URL is the best repro hint. + if (error.config?.url) { + msg += ` [request: ${error.config.method ?? 'GET'} ${error.config.url}]`; + } + return new ApiError(msg, status, error.response?.statusText, data); } return new NetworkError(`Request failed: ${error instanceof Error ? error.message : String(error)}`);