Fae added a comment.

  In T266117#6576394 <https://phabricator.wikimedia.org/T266117#6576394>, 
@AntiCompositeNumber wrote:
  
  > Could not reproduce. Please provide at least the following information:
  
  
  
  > - Operating system
  
  Ubuntu Release 18.04.5 LTS (Bionic Beaver) 64-bit
  
  > - Python environment and version (`import sys; print(sys.version)`)
  
  2.7.17 (default, Sep 30 2020, 13:38:04) [GCC 7.5.0]
  
  > - Pywikibot version (`import pywikibot; print(pywikibot.__version__)`)
  
  3.1.dev0
  
  > - Relevant code or command used, including the chunk size configuration
  
  
  
    site.upload(pywikibot.FilePage(site, 'File:' + pagetitle),
                        source_filename=source_filename,
                        source_url=source_url,
                        comment=comment,
                        text=desc,
                        ignore_warnings = False,
                        chunk_size = 400000,#1048576,
                        #async = True,
                        )
  
  
  
  > - Complete logs of upload attempt (VERBOSE-level or lower preferred)
  
  
  
    pywikibot.data.api.APIError: chunk-too-small: Minimum chunk size is 1,024 
bytes for non-final chunks. [help:See https://commons.wikimedia.org/w/api.php 
for API usage. Subscribe to the mediawiki-api-announce mailing list at 
&lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for 
notice of API deprecations and breaking changes.]
  
  > - Hash of the file that could not be uploaded
  
  Test file is 
https://www.legislation.gov.uk/ukpga/1844/61/pdfs/ukpga_18440061_en.pdf
  
  > It would also be very useful if you could provide the request and response 
headers for the failed chunk upload, including the exact size of the chunk. 
Information about if the file appears in Special:UploadStash would also be 
helpful.
  
  Can't recall how to dig out the WMF server stash log. This upload was under 
User:Fæ and would have been at 2020-10-25 10:37 UK time.

TASK DETAIL
  https://phabricator.wikimedia.org/T266117

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Fae
Cc: AntiCompositeNumber, Mpaa, zhuyifei1999, Aklapper, pywikibot-bugs-list, 
Fae, JohnsonLee01, SHEKH, Dijkstra, CBogen, Khutuck, Zkhalido, Viztor, Wenyi, 
Ramsey-WMF, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Poyekhali, Altostratus, 
Taiwania_Justo, Avicennasis, Ixocactus, Wong128hk, mys_721tx, El_Grafo, 
Dinoguy1000, jayvdb, Masti, Alchimista, Steinsplitter, Rxy, Keegan
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to