Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX-1023: Add regex for base url #1157

Merged
merged 9 commits into from
Jun 27, 2024
Merged

DX-1023: Add regex for base url #1157

merged 9 commits into from
Jun 27, 2024

Conversation

CahidArda
Copy link
Contributor

when an invalid url is passed to the client (without https like eu1-flying-whale-434343.upstash.io), the client still tries to call the endpoint but gets invalild URL error. Instead of stopping there, it continues retrying with exponential backoff.

For instance, in ratelimit, there is a 5 second timeout. Since the exponential backoff takes 12 seconds in total, error is never reflected to the console/network and the user simply gets the timeout response.

With this change, client raises an error right away and ratelimit doesn't return the default timeout response.

Copy link

linear bot commented Jun 26, 2024

@CahidArda
Copy link
Contributor Author

CahidArda commented Jun 26, 2024

fixed CI tests in this PR aswell.

Here are the changes:

  • removed link from cloudflare-workers/package.json to fix cloudflare-workers-local test bdd5a66
  • updated bun.lockb file to fix nodejs-local test fc93463
  • bumped node version of vercel deployed tests, which didn't actually solve the issue 7bdd2b2. Updated node versions from 16 to 20 of sdk-redis and sdk-redis-edge projects at Redis. node 16 has reached end of life

ogzhanolguncu
ogzhanolguncu previously approved these changes Jun 26, 2024
pkg/error.ts Outdated Show resolved Hide resolved
@CahidArda CahidArda merged commit 70bc178 into main Jun 27, 2024
14 checks passed
@CahidArda CahidArda deleted the DX-1023 branch June 27, 2024 06:00
renovate bot referenced this pull request in inabagumi/shinju-date Jul 4, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@upstash/redis](https://github.com/upstash/upstash-redis) |
[`^1.31.6` ->
`^1.32.0`](https://renovatebot.com/diffs/npm/@upstash%2fredis/1.31.6/1.32.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@upstash%2fredis/1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@upstash%2fredis/1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@upstash%2fredis/1.31.6/1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@upstash%2fredis/1.31.6/1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>upstash/upstash-redis (@&#8203;upstash/redis)</summary>

###
[`v1.32.0`](https://github.com/upstash/redis-js/releases/tag/v1.32.0)

[Compare
Source](https://github.com/upstash/upstash-redis/compare/v1.31.6...v1.32.0)

#### What's Changed

- DX-1023: Add regex for base url by
[@&#8203;CahidArda](https://github.com/CahidArda) in
[https://github.com/upstash/redis-js/pull/1157](https://github.com/upstash/redis-js/pull/1157)
- feat: add bitfield command by
[@&#8203;lewxdev](https://github.com/lewxdev) in
[https://github.com/upstash/redis-js/pull/1159](https://github.com/upstash/redis-js/pull/1159)
- Resolve Auto Pipeline Arrappend Issue by
[@&#8203;CahidArda](https://github.com/CahidArda) in
[https://github.com/upstash/redis-js/pull/1165](https://github.com/upstash/redis-js/pull/1165)

#### New Contributors

- [@&#8203;lewxdev](https://github.com/lewxdev) made their first
contribution in
[https://github.com/upstash/redis-js/pull/1159](https://github.com/upstash/redis-js/pull/1159)

**Full Changelog**:
upstash/redis-js@v1.31.6...v1.32.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/inabagumi/shinju-date).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants