April 18, 201411 yr Newbies 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)
April 21, 201411 yr 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.
May 28, 201411 yr 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.
Create an account or sign in to comment