Open chsxf opened 1 year ago
I also get an error when I try uploading empty files, most probably that's because of an integrity check after uploading files, which fails because the file is empty.
Error:
400 level error from server when performing action - retrying...
FTPError: 425 Unable to build data connection: Operation not permitted
at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.5/dist/index.js:5263:39)
at TLSSocket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.5/dist/index.js:5107:44)
at TLSSocket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:376:12)
at readableAddChunk (node:internal/streams/readable:345:11)
at Readable.push (node:internal/streams/readable:286:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23) {
code: 425
}
I can confirm that this is still an issue in 4.3.5. The "de.json" file below was empty and I have received this error every time. Once the file had content, the error disappeared:
uploading "img/slideshow/3.jpg"
uploading "index.html"
uploading "languages/de.json"
----------------------------------------------------------------
-------------- π₯π₯π₯ an error occurred π₯π₯π₯ --------------
----------------------------------------------------------------
----------------------------------------------------------------
---------------------- full error below ----------------------
----------------------------------------------------------------
Error: Server sent FIN packet unexpectedly, closing connection.
at TLSSocket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.5/dist/index.js:5109:56)
at TLSSocket.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections
Bug Description The transfer of an empty file closes the connection prematurely. The file
Empty.twig
was previously empty. By adding a commented content, the action went through. This has been reproduced many times.My Action Config
My Action Log
Many other files before that that were uploaded successfully