Email Data Feed - 416 Cursors is not set. You must request a cursor reset first
search cancel

Email Data Feed - 416 Cursors is not set. You must request a cursor reset first

book

Article ID: 255383

calendar_today

Updated On:

Products

Email Security.cloud

Issue/Introduction

When we execute the cURL command to fetch the Datafeed we get an error - " 416 Cursors is not set. You must request a cursor reset first"

Example: 

curl -u "Username:Password" -vvv "https://datafeeds.emailsecurity.symantec.com/all"

< HTTP/1.1 416

* Connection #0 to host datafeeds.emailsecurity.symantec.com left intact
Cursors is not set. You must request a cursor reset first. 

 

Environment

Email Threat Detection and Response

 

Cause

This error is returned if the cursor is invalid or missing, you must reset the cursor before you fetch the Datafeed.  

 

Resolution

Ensure that you save and pass-in cookies when you execute the cURL command.

Reset/set the cookie
curl -v -c cookieJar --basic --user "Username:Password" https://datafeeds.emailsecurity.symantec.com/all?reset=2022-11-20T00:00:00Z

Use the cookie
curl -v -b cookieJar --basic --user "Username:Password" https://datafeeds.emailsecurity.symantec.com/all

Additional Information

 

The Data Feeds API's available feeds:

https://datafeeds.emailsecurity.symantec.com/all
https://datafeeds.emailsecurity.symantec.com/malware
https://datafeeds.emailsecurity.symantec.com/test
https://datafeeds.emailsecurity.symantec.com/spam
https://datafeeds.emailsecurity.symantec.com/delivery

https://datafeeds.emailsecurity.symantec.com/isolation
https://datafeeds.emailsecurity.symantec.com/clicktime
https://datafeeds.emailsecurity.symantec.com/ec_reports