Allows you to actually share your parameters
# suitescript
b
Allows you to actually share your parameters
g
@battk Thank! So I downloaded Rebex Tiny Server...........
var connection = sftp.createConnection({
        
username: 'tester',
        
passwordGuid: '08f2084fa6f0495ba1099375a5c266ff',
        
url: '<http://test.rebex.net|test.rebex.net>',
        
hostKey: 'AAAAB3NzaC1yc2EAAAABJQAAAQEAkRM6RxDdi3uAGogR3nsQMpmt43X4WnwgMzs8VkwUCqikewxqk4U7EyUSOUeT3CoUNOtywrkNbH83e6/yQgzc3M8i/eDzYtXaNGcKyLfy3Ci6XOwiLLOx1z2AGvvTXln1RXtve+Tn1RTr1BhXVh2cUYbiuVtTWqbEgErT20n4GWD4wv7FhkDbLXNi8DX07F9v7+jH67i0kyGm+E3rE+SaCMRo3zXE6VO+ijcm9HdVxfltQwOYLfuPXM2t5aUSfa96KJcA0I4RCMzA/8Dl9hXGfbWdbD2hK1ZQ1pLvvpNPPyKKjPZcMpOznprbg+jIlsZMWIHt7mq2OJXSdruhRrGzZw=='
    
});
getting a new message
Copy code
{
  "type": "error.SuiteScriptError",
  "name": "FTP_CANNOT_ESTABLISH_CONNECTION",
  "message": "Could not establish connection to Auth fail.",
  "stack": [
    "createError(N/error.js)",
    "upload_to_sftp(ShippingConfirmation.js$228914$debugger.user:128)",
    "execute(ShippingConfirmation.js$228914$debugger.user:123)",
    "<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:27)",
    "<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:19)",
    "<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:35)",
    "<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:1)"
  ],
  "cause": {
    "type": "internal error",
    "code": "FTP_CANNOT_ESTABLISH_CONNECTION",
    "details": "Could not establish connection to Auth fail.",
    "userEvent": null,
    "stackTrace": [
      "createError(N/error.js)",
      "upload_to_sftp(ShippingConfirmation.js$228914$debugger.user:128)",
      "execute(ShippingConfirmation.js$228914$debugger.user:123)",
      "<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:27)",
      "<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:19)",
      "<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:35)",
      "<anonymous>(ShippingConfirmation.js$228914$debugger.wrap:1)"
    ],
    "notifyOff": false
  },
  "id": "",
  "notifyOff": false,
  "userFacing": false
}
b
are you sure that your username and password are correct
https://test.rebex.net/ notes that demo/password are used
g
I guess this is where I got thrown off!!! Thanks again for all your help!!!!!!
OK... .sos they dont let file upload. any uggestion of an SFTP that would work for testing (its ok if low cost) not one hosted on my PC
b
will probably be hard to find a public sftp that does uploads
would probably be easier to find a service that does sftp server hosting or depending on your network setup, setup your local machine to be available online