Jump to content
Server Maintenance This Week. ×

Public Key Error


This topic is 3629 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

This topic is 3629 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.