ioredis is inoperable in Fresh 2
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 44/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- deno, node.js, typescript, vite
Research direction
Start with the linked ioredis reproduction and compare running it through the Vite dev server with deno run -A test_redis.ts, which the report says works in the same environment. Trace how Fresh 2 runs the Vite dev server and identify what causes ioredis to time out there. Done means ioredis works through the dev server without the reported ETIMEDOUT.
Written by the indexing model from the issue text.
Description
I am migrating a large Fresh 1 app to Fresh 2 and I am blocked by a guaranteed ETIMEDOUT in ioredis in the vite dev server. https://github.com/ewired/fresh-redis-experiment/tree/ioredis
Task dev vite
VITE v7.3.1 ready in 261 ms
➜ Local: http://127.0.0.1:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
ioredis v5 does not support plugging third-party Promise library anymore. Native Promise will be used.
GET http://127.0.0.1:5173/
[ioredis] Unhandled error event: Error: connect ETIMEDOUT
at Socket.eval (/home/user/Documents/fresh-redis-experiment/node_modules/.deno/[email protected]/node_modules/ioredis/built/Redis.js:216:27)
at Object.onceWrapper (ext:deno_node/_events.mjs:559:14)
at Socket.emit (ext:deno_node/_events.mjs:436:20)
at Socket._onTimeout (node:net:1007:8)
at cb (ext:deno_node/internal/timers.mjs:85:49)
at callback (ext:deno_web/02_timers.js:42:7)
at eventLoopTick (ext:core/01_core.js:223:13)
[ioredis] Unhandled error event: Error: connect ETIMEDOUT
at Socket.eval (/home/user/Documents/fresh-redis-experiment/node_modules/.deno/[email protected]/node_modules/ioredis/built/Redis.js:216:27)
at Object.onceWrapper (ext:deno_node/_events.mjs:559:14)
at Socket.emit (ext:deno_node/_events.mjs:436:20)
at Socket._onTimeout (node:net:1007:8)
at cb (ext:deno_node/internal/timers.mjs:85:49)
at callback (ext:deno_web/02_timers.js:42:7)
at eventLoopTick (ext:core/01_core.js:223:13)
^C
In the same environment, deno run -A test_redis.ts works fine, and ioredis is used without logging the Promise warning or having ETIMEDOUT.
- Dominant language
- TypeScript
- Stars
- 13.8k
- Forks
- 757
- Avg merge
- 3m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from freshframework/fresh
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
freshframework/fresh#3920 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
freshframework/fresh#3833 ·
-
feat
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
freshframework/fresh#3803 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
freshframework/fresh#3918 · 1 comment · 4 reactions ·
-
Tab title doesn't update to <Head> <title> when navigating to a page with another <title>Possibly taken @1AbdullahButt claimed this 7 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 57/100
freshframework/fresh#3916 ·
All issues in freshframework/fresh
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tintinweb/pi-subagents#459 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
danielmiessler/LifeOS#2830 ·
Maintainers usually reply within 6 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area: client enhancement priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
opensro-dev/opensro#3681 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day