From 4a23d01a7d799d12f9bdd7e68255364eea4c58e0 Mon Sep 17 00:00:00 2001 From: Andreas Thomas Date: Wed, 21 Dec 2022 08:22:19 +0100 Subject: [PATCH 1/3] feat: try disabling decodeURI --- pkg/http.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/http.ts b/pkg/http.ts index ca8897ad..e810ee32 100644 --- a/pkg/http.ts +++ b/pkg/http.ts @@ -219,11 +219,12 @@ function base64decode(b64: string): string { } catch { dec = b64; } - try { - return decodeURIComponent(dec); - } catch { - return dec; - } + return dec + // try { + // return decodeURIComponent(dec); + // } catch { + // return dec; + // } } function decode(raw: ResultError): ResultError { From 8f6319dd8f186ffd19db82535edbc7449d0b3e08 Mon Sep 17 00:00:00 2001 From: Andreas Thomas Date: Mon, 2 Jan 2023 08:27:38 +0100 Subject: [PATCH 2/3] docs: troubleshooting section --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 50cb38bb..c90878db 100644 --- a/README.md +++ b/README.md @@ -81,10 +81,13 @@ data = await redis.spop('animals', 1) console.log(data) ``` +## Troubleshooting + +We have a [dedicated page](https://docs.upstash.com/troubleshooting) for common problems. If you can't find a solution, please [open an issue](https://github.com/upstash/upstash-redis/issues/new). + ## Docs -See [the documentation](https://docs.upstash.com/features/javascriptsdk) for -details. +See [the documentation](https://docs.upstash.com/features/javascriptsdk) for details. ## Contributing From f9603a4ac6f06658b39237520338bd4175765c7b Mon Sep 17 00:00:00 2001 From: Andreas Thomas Date: Mon, 2 Jan 2023 08:28:53 +0100 Subject: [PATCH 3/3] style: fmt --- README.md | 7 +++++-- pkg/http.ts | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c90878db..5a2ee415 100644 --- a/README.md +++ b/README.md @@ -83,11 +83,14 @@ console.log(data) ## Troubleshooting -We have a [dedicated page](https://docs.upstash.com/troubleshooting) for common problems. If you can't find a solution, please [open an issue](https://github.com/upstash/upstash-redis/issues/new). +We have a [dedicated page](https://docs.upstash.com/troubleshooting) for common +problems. If you can't find a solution, please +[open an issue](https://github.com/upstash/upstash-redis/issues/new). ## Docs -See [the documentation](https://docs.upstash.com/features/javascriptsdk) for details. +See [the documentation](https://docs.upstash.com/features/javascriptsdk) for +details. ## Contributing diff --git a/pkg/http.ts b/pkg/http.ts index e810ee32..6644d5c8 100644 --- a/pkg/http.ts +++ b/pkg/http.ts @@ -219,7 +219,7 @@ function base64decode(b64: string): string { } catch { dec = b64; } - return dec + return dec; // try { // return decodeURIComponent(dec); // } catch {