typesense-js crashes on Cloudflare Workers due to axios@1.20.0 - Unsupported cache mode: default
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- api
Research direction
Start by checking the package's axios dependency and the Axios fetch adapter behavior in a Cloudflare Workers (workerd) environment. Reproduce the "Unsupported cache mode: default" error with axios@1.20.0, then verify that the chosen compatibility change prevents the crash without breaking the client.
Written by the indexing model from the issue text.
Description
Because typesense specifies "axios": "^1.15.0", recent installs pull axios@1.20.0. In 1.20.0, Axios's fetch adapter injects cache: 'default' into new Request(), which causes Cloudflare Workers (workerd) to throw TypeError: Unsupported cache mode: default. Please consider pinning Axios to <1.20.0 or providing a native fetch adapter
- Dominant language
- TypeScript
- Stars
- 569
- Forks
- 99
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
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 typesense/typesense-js
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
typesense/typesense-js#348 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
typesense/typesense-js#324 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
typesense/typesense-js#321 · 3 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
typesense/typesense-js#313 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
typesense/typesense-js#286 ·
All issues in typesense/typesense-js
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·