@overmap-ai/core 1.0.25-fix-api-error-messages.0 → 1.0.25-fix-api-error-messages.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3410,6 +3410,7 @@ async function performRequest(action, client) {
3410
3410
  try {
3411
3411
  return await requestToSend.query(queryParams);
3412
3412
  } catch (error) {
3413
+ console.debug("TYPE OF ERROR:", typeof error, error instanceof Error, error instanceof Response);
3413
3414
  console.error(error);
3414
3415
  const originalError = error;
3415
3416
  if (originalError.status === 401) {
@@ -3431,7 +3432,14 @@ async function performRequest(action, client) {
3431
3432
  }
3432
3433
  }
3433
3434
  const apiErrorMessage = ((_a2 = originalError.body) == null ? void 0 : _a2.error) ?? originalError.text ?? originalError.error;
3434
- console.log("API error:", originalError);
3435
+ console.log(
3436
+ "API error:",
3437
+ originalError,
3438
+ originalError.error,
3439
+ originalError.text,
3440
+ originalError.body,
3441
+ originalError.status
3442
+ );
3435
3443
  throw new APIError(
3436
3444
  typeof apiErrorMessage === "string" ? apiErrorMessage : (
3437
3445
  // TODO: Error codes for all APIErrors.