Newbies amclare Posted April 18, 2014 Newbies Posted April 18, 2014 We are using FTPeek 1.642 on our FileMaker Server (12.0.4.405) to transfer files to a sftp server. It works well most of the time. Every once in a while, however, we get an error message that seems to imply that the public key function did not work correctly. This message reads: ========= Export to [...] failed: Couldn't connect to sftp server - java.lang.IllegalArgumentException: Public key: ERROR is not a valid key, make sure FTPeek_GetPublicKey() function is not returning ERROR ========== Why does this happen? Is there a way to correct for it? (Further possibly valuable info: Windows Server 2008 R2 Standard, Java 1.7.0_17b02)
Joe Pampalon Posted April 21, 2014 Posted April 21, 2014 Hello, All 360Works plugin functions return the string "ERROR" when the function fails. If you trap for this in your script, you can call XXLastError (where XX is usually the plugin's name) to get a human-readable form of the error message. This should better explain the error. According to the error from your post, it is very likely the FTPeek_GetPublicKey function is failing and the FTPeek_ConnectSFTP script that follows it is throwing an error because it receives the string "ERROR" in place of the public key for which it is looking. Please take a look at FTPeek's plugin documentation here: http://static.360works.com/plugins/FTPPLUGIN/documentation.html There are examples of how to trap for errors in your script as well as a description of FTPeek_LastError.
SimDev Posted May 28, 2014 Posted May 28, 2014 I had this same error message, and found that I needed to specify the home directory to make it work properly. Without the home directory the OP's message will popup.
Recommended Posts
This topic is 3888 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now