Edge Encryption Mass Encryption Attachment Job Error: Unexpected response code from ServiceNow server: 500


You have started a mass encryption job to encrypt attachments.  For most attachments the job proceeds without error, but at some point you see the following error in the $proxy_installation_location/logs/edgeencryption.log:

com.snc.edgeencryption.rest_client.RestException: Unexpected response code from ServiceNow server: 500
at com.snc.edgeencryption.rest_client.RestClient.sendRequest(
at com.snc.edgeencryption.rest_client.RestClient.getAttachmentContent(
at com.snc.edgeencryption.rest_client.Attachment.getContentIfUnencrypted(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

Repeated attempts to run the mass encryption job results in the same error.



The mass encryption job has errors, see the mentioned errors in the edgeencryption.log file.



There are corrupted attachments. The attachments are already corrupted before there is any attempt to do the encryption of the attachments.  Since the attachments are already corrupted there is no possibility to perform the encryption. This is why the same error is seen each time the mass encryption is attempted.



  1. For the attachments that have failed to get encrypted, go to those records with the attachment and try to download the attachments. If the download of the attachments fail or the downloaded attachment file cannot be unzipped or read by the appropriate program for the attachment type, then the attachment is corrupted.
  2. The best action is to simply remove the attachment from the record since in its corrupted state. It really has no value. 
  3. Once all corrupted attachments are removed the mass encryption should execute to the end without any further 500 errors.

Article Information

Last Updated:2018-01-12 11:46:08