#1712·tweepy

[bug] `chunked_upload` is not working properly

Author: codesankalpCreated Nov 22, 2021Updated Sep 13, 2024
LabelsBug

When using the chunked_upload i get this error:

python
   3514         media_id = self.chunked_upload_init(
   3515             file_size, file_type, media_category=media_category,
-> 3516             additional_owners=additional_owners, **kwargs
   3517         ).media_id
   3518 

AttributeError: 'dict' object has no attribute 'media_id'

Due to:

https://github.com/tweepy/tweepy/blob/22e378d35c4ed064bb73e71485d75dd97506024f/tweepy/api.py#L3514-L3517

This method returns a dict object:

https://github.com/tweepy/tweepy/blob/22e378d35c4ed064bb73e71485d75dd97506024f/tweepy/api.py#L3640-L3643