js icon indicating copy to clipboard operation
js copied to clipboard

[SDK] Fix: Upload storage timeout

Open gregfromstl opened this issue 11 months ago β€’ 6 comments


PR-Codex overview

This PR focuses on fixing the storage upload timeout in the thirdweb package by allowing the timeout to be configurable through client settings.

Detailed summary

  • Updated requestTimeoutMs in web-node.ts to use client.config?.storage?.fetch?.requestTimeoutMs.
  • Modified the timeout in mobile.ts to default to client.config?.storage?.fetch?.requestTimeoutMs or 30000 if not set.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

gregfromstl avatar Feb 19 '25 18:02 gregfromstl

πŸ¦‹ Changeset detected

Latest commit: 7d776eb5b5405b2ff8d36bd0acefe01940309ff8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
thirdweb Patch
@thirdweb-dev/wagmi-adapter Patch
thirdweb-login Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Feb 19 '25 18:02 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
docs-v2 βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 19, 2025 6:52pm
login βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 19, 2025 6:52pm
thirdweb_playground βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 19, 2025 6:52pm
thirdweb-www βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 19, 2025 6:52pm
wallet-ui βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 19, 2025 6:52pm

vercel[bot] avatar Feb 19 '25 18:02 vercel[bot]

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

graphite-app[bot] avatar Feb 19 '25 18:02 graphite-app[bot]

size-limit report πŸ“¦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.3 KB (0%) 926 ms (0%) 2.3 s (-25.26% πŸ”½) 3.2 s
thirdweb (cjs) 121.87 KB (-0.02% πŸ”½) 2.5 s (-0.02% πŸ”½) 6 s (+15.87% πŸ”Ί) 8.5 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 112 ms (0%) 374 ms (+79.75% πŸ”Ί) 486 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 192 ms (+358.06% πŸ”Ί) 202 ms
thirdweb/react (minimal + tree-shaking) 19.29 KB (0%) 386 ms (0%) 504 ms (-54.77% πŸ”½) 890 ms

github-actions[bot] avatar Feb 19 '25 18:02 github-actions[bot]

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 56.82%. Comparing base (45ac0cb) to head (7d776eb). Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
packages/thirdweb/src/storage/upload/web-node.ts 0.00% 1 Missing :warning:

:x: Your patch status has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6300      +/-   ##
==========================================
- Coverage   56.83%   56.82%   -0.02%     
==========================================
  Files        1168     1168              
  Lines       64793    64794       +1     
  Branches     5260     5258       -2     
==========================================
- Hits        36824    36817       -7     
- Misses      27242    27251       +9     
+ Partials      727      726       -1     
Flag Coverage Ξ” *Carryforward flag
legacy_packages 65.68% <ΓΈ> (ΓΈ) Carriedforward from 45ac0cb
packages 55.03% <0.00%> (-0.02%) :arrow_down:

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Ξ”
packages/thirdweb/src/storage/upload/web-node.ts 91.83% <0.00%> (-1.92%) :arrow_down:

... and 3 files with indirect coverage changes

codecov[bot] avatar Feb 19 '25 18:02 codecov[bot]