For the past day I have had issues with Internet Archive uploads getting stuck in a retry upload loop. I say 'stuck' because just letting this run to see what happens overnight did not resolve anything. However some examples were actually uploaded and for an unknown reason the API did not return any success messages.
The upload is using the standard Pywikibot site.upload module and the API is returning retry messages like this (and this example of the 180MB upload has been attempted several times without any success:
Catalog of Copyright Entries, 1978 Serials & Periodicals (IA catalogofcopyri12libr).pdf https://archive.org/download/catalogofcopyri12libr/catalogofcopyri12libr.pdf 189.8M Sleeping for 15.4 seconds, 2020-06-04 11:41:39 WARNING: Waiting 5 seconds before retrying. WARNING: Http response status 503 WARNING: Non-JSON response received from server commons:commons; the server may be down. WARNING: Waiting 10 seconds before retrying. WARNING: Waiting 20 seconds before retrying. WARNING: Waiting 40 seconds before retrying. WARNING: Waiting 80 seconds before retrying. WARNING: Waiting 120 seconds before retrying. WARNING: Waiting 120 seconds before retrying. WARNING: Waiting 120 seconds before retrying.
There may be a prior known error, but I am unaware of any work-around or fix.
Also raised for community comment at Commons Technical VP along with further example files.