ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Email Data Feed - 401 Unauthorized Error

book

Article ID: 172917

calendar_today

Updated On:

Products

Email Security.cloud Email Threat Detection and Response

Issue/Introduction

Unable to generate metadata produced by the Email Data Feed service. Sample Python script gets executed and generates a .json log file containg error "401 Unauthorized". 

{"timestamp":1512541276114,"status":401,"error":"Unauthorized","message":"Unable to authenticate","path":"/all"}

Cause

Unauthorized - authentication error. This error code is returned if no login credentials are provided or login credentials are invalid. 

Environment

Email Threat Detection and Response

Resolution

Ensure that your Email Security.cloud portal administrator has created at least one new user account in the portal for authentication to the Email Data Feed service. The user
account must have View Statistics permissions for the Advanced Threat Protection service.

Enter valid Username and Password into NdfConfig.json configuation file. Then run the script again to generate log files.