You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is likely actual for any upload of io.StringIO instance.
Possible solution:
When uploading of any text, manually encode it with 'utf-8' and upload as io.BytesIO
If the text is obtained from file on Windows deployer, it will need to decode it first with the same 'utf-8' to not lose the utf-8 symbols.
In other words, it is necessary to introduce new requirement for encoding of input text files and always open for reading and writing with 'utf-8' and always upload as io.BytesIO.
Steps to reproduce:
install --tasks deploy.plugins
AR: fails with
size mismatch in put! 121 != 118
, see paramiko/paramiko#1133The problem is likely actual for any upload of io.StringIO instance.
Possible solution:
When uploading of any text, manually encode it with 'utf-8' and upload as io.BytesIO
If the text is obtained from file on Windows deployer, it will need to decode it first with the same 'utf-8' to not lose the utf-8 symbols.
In other words, it is necessary to introduce new requirement for encoding of input text files and always open for reading and writing with 'utf-8' and always upload as io.BytesIO.
Prototype: eedfbf9
The text was updated successfully, but these errors were encountered: