Error calling HTTP File Download, Message: Could not access the file [filePath=/media/nss/APPIANFS/_admin/accdocs1/42427/10204098

Hi All,

We are using HTTP File Download smart service to get files from a http endpoint url. But we are getting the below error.

Error calling HTTP File Download, Message: Could not access the file [filePath=/media/nss/APPIANFS/_admin/accdocs1/42427/10204098 

The downloaded file is not being created in the APPIANFS. I checked under /media/nss/APPIANFS/_admin/accdocs1/42427 but the file 10204098 is not there.  So I see a blank file created (with the display name provided in file download smart service) in the documents tab, but it doesn't have any data.The strange thing is the same code with the same http endpoint works fine in all our non-prod environments. We have two load balanced application servers in production and it is single sign on.

 

I am seeing the below error in application server logs. (But I am not sure if the authentication details warning is even related to my issue or not)

2018-01-20 23:51:53,083 [Appian Work Item - 23356 - ProcessExec02 : UnattendedJavaActivityRequest] ERROR com.appian.integration.httpclient.smartnode.HttpSmartNode - ConnectorRuntimeException [title=Error calling HTTP File Download, com.appian.integration.core.exception.ConnectorRuntimeException: Could not access the file [filePath=/media/nss/APPIANFS/_admin/accdocs1/42427/10204098.].]

2018-01-20 23:51:54,594 [ajp-/172.16.1.114:9090-2] WARN  com.appiancorp.security.auth.activity.UserActivityFilter - Cannot retrieve authentication details. Please update your Spring Security XML configuration, so that com.appiancorp.security.auth.AppianAuthenticationDetailsSource is used as the authenticationDetailsSource. (Expected an instance of com.appiancorp.security.auth.AuthenticationDetails, but got org.springframework.security.web.authentication.WebAuthenticationDetails.)

 

Please help if you have any idea on this issue. Thanks in advance.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Hi I believe, this issue is related to authenticate or access privileges.

    To debug this, Make sure you are using same credentials as well as the file path url to download the file.

    HTTP file download smart Service is having proper exception handling hence you are receiving the response as "could not access the file" and as exceptions are not terminating the node execution, hence a blank file is being created.

    Best way to debug this is: take a patch of this process from production where this issue is getting occurred and deploy it in Dev environment and execute it, and check whether you are getting success or error code as response. This will help you to debug and resolve this integration issue.
Reply
  • 0
    Certified Lead Developer
    Hi I believe, this issue is related to authenticate or access privileges.

    To debug this, Make sure you are using same credentials as well as the file path url to download the file.

    HTTP file download smart Service is having proper exception handling hence you are receiving the response as "could not access the file" and as exceptions are not terminating the node execution, hence a blank file is being created.

    Best way to debug this is: take a patch of this process from production where this issue is getting occurred and deploy it in Dev environment and execute it, and check whether you are getting success or error code as response. This will help you to debug and resolve this integration issue.
Children
No Data