question

Upvotes
Accepted
36 10 5 15

How to do FTP push in TRTH

Greetings everyone

I am trying to use FTP push to retrieve data but seems the TRTH server can't access to my FTP site, as the request status was staying in 'uploading' and no result arrived.

Then I tried to run code of FTPExample, and found below error to use FTP push:

Client FTP error --> Failed to connect to ftp:21 - eval failed: (Couldn't create new FTP object: Net::FTP: Bad hostname)

Any suggestion to create a valid FTP site for pushing method please?

tick-history-rest-apiFTP
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvote
Accepted
7.6k 15 6 9

@Leon.Hong

It looks like TRTH server unable to connect to your FTP server so it can't push test file on your FTP. Bad hostname indicate that it can't resolve your hostname and I guess that it's because you are using hostname("FTP") which is FTP server in your local network. As far as I understand using FTP Push you have to use FTP server on public network. Please check your server name again.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.