While working on https://gerrit.wikimedia.org/r/#/c/234851/ I'm unable to finish a chunked file. Interestingly there are two tests. One is uploading a file in chunked mode which ignores warnings (as the target file already exist and there are duplicates). Another is uploading a file in chunked mode too but it doesn't ignore warnings. From that I get an offset and filekey and then it manually continues the upload in chunked mode again. But then it complains with stashfailed: No chunked upload session with this key.
Now it might be that pywikibot is screwing this up, but I logged the test and the request it send to the server mentions a filekey which I can use with query+stashimageinfo.