-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception Value: api_request() got an unexpected keyword argument 'extra_api_info' #831
Comments
Oh yikes, this looks related to my change #741 Noting that this has also been reported here: Researching this further and will update here as soon as I discover more or have a fix in place. |
Just to be clear, does this happen every-time for you? Or is it intermittent? |
Could you also run a |
Hi ! For the pip freeze: asgiref==3.5.2
billiard==3.6.4.0
CacheControl==0.12.6
cachetools==4.2.2
celery==5.2.6
certifi==2021.10.8
cffi==1.14.5
chardet==4.0.0
click==8.1.3
click-didyoumean==0.0.3
click-plugins==1.1.1
click-repl==0.2.0
colorama==0.4.3
coreapi==2.3.3
coreschema==0.0.4
defusedxml==0.7.1
diff-match-patch==20200713
dj-database-url==0.5.0
Django==3.2.13
django-admin-autocomplete-filter==0.7.1
django-anymail==8.5
django-celery-beat==2.2.1
django-celery-results==2.3.1
django-cors-headers==3.12.0
django-filter==21.1
django-import-export==2.8.0
django-storages==1.12.3
django-timezone-field==4.2.3
djangorestframework==3.13.1
et-xmlfile==1.1.0
factory-boy==3.2.1
Faker==8.4.0
firebase-admin==5.0.2
future==0.18.2
ghp-import==2.1.0
google-api-core==1.31.5
google-api-python-client==2.17.0
google-auth==1.30.1
google-auth-httplib2==0.1.0
google-cloud-core==1.6.0
google-cloud-datastore==2.5.1
google-cloud-firestore==2.2.0
google-cloud-monitoring==2.9.2
google-cloud-storage==1.44.0
google-cloud-trace==0.24.0
google-crc32c==1.1.2
google-resumable-media==2.3.3
googleapis-common-protos==1.53.0
grpcio==1.38.0
grpcio-status==1.46.3
gunicorn==20.0.4
httplib2==0.19.1
idna==2.10
importlib-metadata==4.11.4
itypes==1.2.0
Jinja2==3.0.1
joblib==1.0.1
kombu==5.2.4
livereload==2.6.3
lunr==0.5.8
Markdown==3.3.4
MarkupPy==1.14
MarkupSafe==2.0.1
mergedeep==1.3.4
mkdocs==1.3.0
mkdocs-material==5.2.3
mkdocs-material-extensions==1.0.1
msgpack==1.0.2
nltk==3.6.2
odfpy==1.4.1
opencensus==0.9.0
opencensus-context==0.1.2
opencensus-ext-django==0.7.6
opencensus-ext-stackdriver==0.8.0
openpyxl==3.0.7
packaging==20.9
prompt-toolkit==3.0.19
proto-plus==1.19.0
protobuf==3.17.1
psycopg2-binary==2.8.6
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
Pygments==2.9.0
pymdown-extensions==8.2
pyparsing==2.4.7
python-crontab==2.6.0
python-dateutil==2.8.1
python-decouple==3.6
pytz==2022.1
PyYAML==5.4.1
pyyaml-env-tag==0.1
regex==2021.4.4
requests==2.25.1
requests-futures==1.0.0
rsa==4.7.2
six==1.16.0
sqlparse==0.4.2
tablib==3.0.0
text-unidecode==1.3
tornado==6.1
tqdm==4.40.2
uritemplate==3.0.1
urllib3==1.26.5
vine==5.0.0
watchdog==2.1.8
wcwidth==0.2.5
xlrd==2.0.1
XlsxWriter==1.3.3
xlwt==1.3.0
zipp==3.8.0``` |
Thank you! Can you change the cloud storage version back to 2.5.0 or
whatever you were using when the error was thrown and share the pip freeze
from that? This seems to be with you downgrading to 1.44.0 for the
workaround.
…On Tue, Aug 9, 2022, 6:27 AM Romain Fayolle ***@***.***> wrote:
Hi !
It happens every time. My use case is: I have a model made for files. I
have a front end listing and displaying those files. When the front call
Django Rest API to get the data to display, Django get all attributes for
those files, and especially the size property, triggering the error every
time. In the end the back always send the error you see in my post.
For the pip freeze:
asgiref==3.5.2
billiard==3.6.4.0
CacheControl==0.12.6
cachetools==4.2.2
celery==5.2.6
certifi==2021.10.8
cffi==1.14.5
chardet==4.0.0
click==8.1.3
click-didyoumean==0.0.3
click-plugins==1.1.1
click-repl==0.2.0
colorama==0.4.3
coreapi==2.3.3
coreschema==0.0.4
defusedxml==0.7.1
diff-match-patch==20200713
dj-database-url==0.5.0
Django==3.2.13
django-admin-autocomplete-filter==0.7.1
django-anymail==8.5
django-celery-beat==2.2.1
django-celery-results==2.3.1
django-cors-headers==3.12.0
django-filter==21.1
django-import-export==2.8.0
django-storages==1.12.3
django-timezone-field==4.2.3
djangorestframework==3.13.1
et-xmlfile==1.1.0
factory-boy==3.2.1
Faker==8.4.0
firebase-admin==5.0.2
future==0.18.2
ghp-import==2.1.0
google-api-core==1.31.5
google-api-python-client==2.17.0
google-auth==1.30.1
google-auth-httplib2==0.1.0
google-cloud-core==1.6.0
google-cloud-datastore==2.5.1
google-cloud-firestore==2.2.0
google-cloud-monitoring==2.9.2
google-cloud-storage==1.44.0
google-cloud-trace==0.24.0
google-crc32c==1.1.2
google-resumable-media==2.3.3
googleapis-common-protos==1.53.0
grpcio==1.38.0
grpcio-status==1.46.3
gunicorn==20.0.4
httplib2==0.19.1
idna==2.10
importlib-metadata==4.11.4
itypes==1.2.0
Jinja2==3.0.1
joblib==1.0.1
kombu==5.2.4
livereload==2.6.3
lunr==0.5.8
Markdown==3.3.4
MarkupPy==1.14
MarkupSafe==2.0.1
mergedeep==1.3.4
mkdocs==1.3.0
mkdocs-material==5.2.3
mkdocs-material-extensions==1.0.1
msgpack==1.0.2
nltk==3.6.2
odfpy==1.4.1
opencensus==0.9.0
opencensus-context==0.1.2
opencensus-ext-django==0.7.6
opencensus-ext-stackdriver==0.8.0
openpyxl==3.0.7
packaging==20.9
prompt-toolkit==3.0.19
proto-plus==1.19.0
protobuf==3.17.1
psycopg2-binary==2.8.6
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
Pygments==2.9.0
pymdown-extensions==8.2
pyparsing==2.4.7
python-crontab==2.6.0
python-dateutil==2.8.1
python-decouple==3.6
pytz==2022.1
PyYAML==5.4.1
pyyaml-env-tag==0.1
regex==2021.4.4
requests==2.25.1
requests-futures==1.0.0
rsa==4.7.2
six==1.16.0
sqlparse==0.4.2
tablib==3.0.0
text-unidecode==1.3
tornado==6.1
tqdm==4.40.2
uritemplate==3.0.1
urllib3==1.26.5
vine==5.0.0
watchdog==2.1.8
wcwidth==0.2.5
xlrd==2.0.1
XlsxWriter==1.3.3
xlwt==1.3.0
zipp==3.8.0```
—
Reply to this email directly, view it on GitHub
<#831 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMAOKUCZVUH443HR3VRKETVYJFB5ANCNFSM55S2WI2Q>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Haha yes sorry I was discussing with my colleague and I realized I shared the working version with 1.44.0, you were faster than me. Here is the freeze with 2.5.0: asgiref==3.5.2
billiard==3.6.4.0
CacheControl==0.12.6
cachetools==4.2.2
celery==5.2.6
certifi==2021.10.8
cffi==1.14.5
chardet==4.0.0
click==8.1.3
click-didyoumean==0.0.3
click-plugins==1.1.1
click-repl==0.2.0
colorama==0.4.3
coreapi==2.3.3
coreschema==0.0.4
defusedxml==0.7.1
diff-match-patch==20200713
dj-database-url==0.5.0
Django==3.2.13
django-admin-autocomplete-filter==0.7.1
django-anymail==8.5
django-celery-beat==2.2.1
django-celery-results==2.3.1
django-cors-headers==3.12.0
django-filter==21.1
django-import-export==2.8.0
django-storages==1.12.3
django-timezone-field==4.2.3
djangorestframework==3.13.1
et-xmlfile==1.1.0
factory-boy==3.2.1
Faker==8.4.0
firebase-admin==5.0.2
future==0.18.2
ghp-import==2.1.0
google-api-core==1.31.5
google-api-python-client==2.17.0
google-auth==1.30.1
google-auth-httplib2==0.1.0
google-cloud-core==2.3.2
google-cloud-datastore==2.5.1
google-cloud-firestore==2.2.0
google-cloud-monitoring==2.9.2
google-cloud-storage==2.5.0
google-cloud-trace==0.24.0
google-crc32c==1.1.2
google-resumable-media==2.3.3
googleapis-common-protos==1.53.0
grpcio==1.38.0
grpcio-status==1.46.3
gunicorn==20.0.4
httplib2==0.19.1
idna==2.10
importlib-metadata==4.11.4
itypes==1.2.0
Jinja2==3.0.1
joblib==1.0.1
kombu==5.2.4
livereload==2.6.3
lunr==0.5.8
Markdown==3.3.4
MarkupPy==1.14
MarkupSafe==2.0.1
mergedeep==1.3.4
mkdocs==1.3.0
mkdocs-material==5.2.3
mkdocs-material-extensions==1.0.1
msgpack==1.0.2
nltk==3.6.2
odfpy==1.4.1
opencensus==0.9.0
opencensus-context==0.1.2
opencensus-ext-django==0.7.6
opencensus-ext-stackdriver==0.8.0
openpyxl==3.0.7
packaging==20.9
prompt-toolkit==3.0.19
proto-plus==1.19.0
protobuf==3.17.1
psycopg2-binary==2.8.6
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
Pygments==2.9.0
pymdown-extensions==8.2
pyparsing==2.4.7
python-crontab==2.6.0
python-dateutil==2.8.1
python-decouple==3.6
pytz==2022.1
PyYAML==5.4.1
pyyaml-env-tag==0.1
regex==2021.4.4
requests==2.25.1
requests-futures==1.0.0
rsa==4.7.2
six==1.16.0
sqlparse==0.4.2
tablib==3.0.0
text-unidecode==1.3
tornado==6.1
tqdm==4.40.2
uritemplate==3.0.1
urllib3==1.26.5
vine==5.0.0
watchdog==2.1.8
wcwidth==0.2.5
xlrd==2.0.1
XlsxWriter==1.3.3
xlwt==1.3.0
zipp==3.8.0 |
Hey @RomainFayolle, just want you to know we're still trying to figure this issue out. Have not yet been able to reproduce the issue and when we try to install the requirements as you have them here (putting these in requirements.txt and running
Continuing to investigate. |
@RomainFayolle would it be possible to share your requirements.txt file? |
What would also be helpful is if you could try putting the output from your pip freeze into a fresh environment requirements.txt and see if you're able to reproduce it. We still haven't been able to reproduce this on our end. |
Also found this error. STEPS:
produces the error. |
FYI Romain is in a middle of a holliday trip, it should be back soon and I'm sure he will take the time to update the issue with your requested items. |
Hi @Breathtender sorry for the very late response. I was in a big trip and then lots of stuff to work on.
Now the code is working as expected. |
@WildSunLove has there been any progress on fixing the underlying issue that causes this? We're encountering the same issue and are stuck using
UPDATE: It's possible to use newer |
For more context, the argument We have not been able to reproduce the issue as we see conflict warnings when running the following in a fresh venv respectively.
A recommendation is to explicitly specify/upgrade the following 3 libraries with current versions
or the released (and later) versions of stated changes in #741 and googleapis/python-cloud-core#183
If you still encounter this issue, please reopen and comment with the exact version of libraries you are using (for instance with pip freeze) and your OS/platform. |
Hi,
I'm having an issue on
google-cloud-storage
2.3.0, I also tried it with 2.5.0. I use Django and I have a file model that is linked to GCS. When getting the size of the file I have an error: Exception Value: api_request() got an unexpected keyword argument 'extra_api_info'I fixed the issue by downgrading google-cloud-storage to 1.44.0 as suggested in this stack overflow issue
Environment details
google-cloud-storage
version: 2.3.0 and 2.5.0Steps to reproduce
Code example
Stack trace
Everything is done under the hood, I'm not using api_request() myself. Django is when trying to get the size parameter of my file by using
google-cloud-storage
.CC @RignonNoel
The text was updated successfully, but these errors were encountered: