Solution skill
dwollav2 TypeError: request() got an unexpected keyword argument 'file' on document upload (1.5.0)
Complete solution
Shows how to fix dwollav2 TypeError: request() got an unexpected keyword argument 'file' on document upload (1.5.0). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "TypeError: request() got an unexpected keyword argument 'file'": the fix shipped and the maintainer confirmed anything >= 1.6.0 has it, upgrade to 1.6.0+. A community member traced it to params being passed positionally instead of as the named params kwarg, so requests received them twice.
TypeError: request() got an unexpected keyword argument 'file'Steps
- 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 namedparamskwarg, so requests received them twice. A maintainer confirmed the regression was introduced in v1.4.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 fix shipped and the maintainer confirmed anything >= 1.6.0 has it, upgrade to 1.6.0+.
Expected: A maintainer confirmed the regression was introduced in v1.4.0.
When to use
You are seeing this: 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(). Use this skill when you run into "dwollav2 TypeError: request() got an unexpected keyword argument 'file' on document upload (1.5.0)".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: dwollav2 1.5.0, v1.4.0, v1.4.0 v1.5.0, v1.3.0, 1.6.0. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
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 2 · 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>