Wrong reason
An FTP server was built in the local area network. Because the project uses an FTP file upload and download service packaged by node-ftp, the following error is reported when uploading files:
(node:29020) UnhandledPromiseRejectionWarning: Error: Timed out while making data connection
at Timeout. (D:\git project\nexrender\packages\nexrender-provider-ftp\node_modules\ftp\lib\connection.js:901:12)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
(Usenode --trace-warnings ...
to show where the warning was created)
(node:29020) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:29020) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Problem analysis
Open port 21 on the server and use cmd locally to connect to the ftp service. It is possible to connect normally and upload and download files.
Solution
Turn off the firewall, the server is CentOS7, the steps to turn off are as follows
#View the ports opened by the firewall
firewall-cmd --list-ports
#8008/tcp 21/tcp 80/tcp
#View the status of the firewall
firewall-cmd --state
#running
#Turn off the firewall
systemctl stop firewalld
#View firewall status
firewall-cmd --state
#not running
Read More:
- [Solved] xdd-plus-fetch qrcode error: Packet timed out,2-error: unknown flag
- Error Running Context: The server unexpectedly closed the connection
- [Solved] ERROR: error loading sources list: The read operation timed out
- Install and start the tftp-server server and possible solutions to Redirecting to /bin/systemctl restart xinetd.service problems
- [Solved] FTP Setup Error: Job for vsftpd.service failed because the control process exited with error code…
- SSH Connect Service Error: Could not connect to ‘xxx.xxx.xx.xx‘ (port 22): Connection failed.
- Linux yum Error: All mirror URLs are not using ftp
- [Solved] Error: Connection activation failed: No suitable device found for this connection.
- [Solved] Git Error: OpenSSL SSL_read: Connection was reset, errno 10054和Failed to connect to github.com port 443
- [Solved] GVM Error: rsync: connection unexpectedly closed & rsync: read error: Connection reset by peer (104)
- Initializing the Kubernetes master node ERROR: failed to pull image registry.aliyuncs.com/google_containers/coredns:v1.8.0
- [Solved] Beeline Error: Error: Could not open client transport with JDBC Failed to Connection
- How to Download APK Files from Google Play Store
- C#: How to Use Itextsharp to Manipulate PDF Files
- [Solved] Nginx cannot access pictures on FTP Error: Whitelabel error page
- Linux system service command error: Failed to allocate directory watch: Too many open files
- Ubuntu: rabbitmq reports an error; Solution error: unable to connect to node rabbit@localhost : nodedown
- Git error when switching branches: Your local changes to the following files would be overwritten by checkout
- [Solved] Remote Server error: Server sent passive reply with unroutable address…
- Configure the node environment under Linux, internal/modules/cjs/loader.js:583 throw err; solution