[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 03/05: return info on timeout
From: |
gnunet |
Subject: |
[taler-wallet-core] 03/05: return info on timeout |
Date: |
Thu, 19 Oct 2023 07:56:25 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit c0dd59db4f6217ddd963237a24ee2558b7d0b2c0
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Oct 19 02:45:10 2023 -0300
return info on timeout
---
packages/web-util/src/utils/http-impl.browser.ts | 6 +++++-
packages/web-util/src/utils/http-impl.sw.ts | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/packages/web-util/src/utils/http-impl.browser.ts
b/packages/web-util/src/utils/http-impl.browser.ts
index 598146149..f19d1fe61 100644
--- a/packages/web-util/src/utils/http-impl.browser.ts
+++ b/packages/web-util/src/utils/http-impl.browser.ts
@@ -104,7 +104,11 @@ export class BrowserHttpLib implements HttpRequestLibrary {
reject(
TalerError.fromDetail(
TalerErrorCode.WALLET_HTTP_REQUEST_GENERIC_TIMEOUT,
- {},
+ {
+ requestUrl,
+ requestMethod,
+ timeoutMs: requestTimeout.d_ms === "forever" ? 0 :
requestTimeout.d_ms
+ },
`request to ${requestUrl} timed out`,
),
);
diff --git a/packages/web-util/src/utils/http-impl.sw.ts
b/packages/web-util/src/utils/http-impl.sw.ts
index 05696105c..aab88021f 100644
--- a/packages/web-util/src/utils/http-impl.sw.ts
+++ b/packages/web-util/src/utils/http-impl.sw.ts
@@ -110,7 +110,11 @@ export class ServiceWorkerHttpLib implements
HttpRequestLibrary {
if (controller.signal) {
throw TalerError.fromDetail(
TalerErrorCode.WALLET_HTTP_REQUEST_GENERIC_TIMEOUT,
- {},
+ {
+ requestUrl,
+ requestMethod,
+ timeoutMs: requestTimeout.d_ms === "forever" ? 0 :
requestTimeout.d_ms
+ },
`request to ${requestUrl} timed out`,
);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated (39ba26c76 -> 366cccb8f), gnunet, 2023/10/19
- [taler-wallet-core] 03/05: return info on timeout,
gnunet <=
- [taler-wallet-core] 04/05: update testing hook, gnunet, 2023/10/19
- [taler-wallet-core] 01/05: talerhttperror definition, for error in http request, gnunet, 2023/10/19
- [taler-wallet-core] 02/05: update api, gnunet, 2023/10/19
- [taler-wallet-core] 05/05: integrate bank into the new taler-util API, gnunet, 2023/10/19