You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed that there's a PR for this fix already: #73. This issue can be closed once that's merged.
For anyone running into this issue, one simple workaround is to just use the original treaty client (edenTreaty) as demonstrated above until this issue is fixed.
The treaty2 client does not send files properly. The original treaty client works fine. Reproduction code:
The regression is due to these lines:
eden/src/treaty2/index.ts
Lines 235 to 240 in dab2e53
This condition runs because body is an object, and the line
fetchInit.body = JSON.stringify(fetchInit.body)
wipes out the file being uploaded.The text was updated successfully, but these errors were encountered: