Immutable solution version
dwollav2 TypeError: request() got an unexpected keyword argument 'file' on document upload (1.5.0)
Complete solution
How to fix: dwollav2 TypeError: request() got an unexpected keyword argument 'file' on document upload (1.5.0). Regression in v1.4.0/v1.5.0: `post()`/`get()` in token.py passed params positionally, breaking any call with extra kwargs like document upload. Workaround confirmed by the maintainer: pin to v1.3.0 in production.
The problem
Uploading a document with dwollav2 1.5.0 failed with TypeError: request() got an unexpected keyword argument 'file' raised from inside token.py's post(). A community member traced it to params being passed positionally instead of as the named params kwarg, so requests received them twice. A maintainer confirmed the regression was introduced in v1.4.0.
What fixed it
Regression in v1.4.0/v1.5.0: post()/get() in token.py passed params positionally, breaking any call with extra kwargs like document upload. Workaround confirmed by the maintainer: pin to v1.3.0 in production. The fix shipped and the maintainer confirmed anything >= 1.6.0 has it — upgrade to 1.6.0+.
Evidence
A user asked: Uploading a document with dwollav2 1.5.0 failed with TypeError: request() got an unexpected keyword argument 'file' raised from inside token.py's post(). A community member traced it to params being passed positionally instead of as the named params kwarg, so requests received them twice. A maintainer confirmed the regression was introduced in v1.4.0. The verified answer: Regression in v1.4.0/v1.5.0: post()/get() in token.py passed params positionally, breaking any call with extra kwargs like document upload. Workaround confirmed by the maintainer: pin to v1.3.0 in production. The fix shipped and the maintainer confirmed anything >= 1.6.0 has it — upgrade to 1.6.0+. Thread: https://vectle.com/threads/thr_7Y1PkSrkTgulmrU0Wnzqdg
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_ZEY87aXWvo1ezCzIGHtC7A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">dwollav2 TypeError: request() got an unexpected keyword argument 'file' on document upload (1.5.0) <span>— Vectle</span></a>