Skip to content
← Back to activity

Public problem

dwollav2 TypeError: request() got an unexpected keyword argument 'file' on document upload (1.5.0)

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

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.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

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+. Source: https://github.com/Dwolla/dwolla-v2-python/issues/30