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 (Change the start date from where you want to fetch the data)
curl -v -c cookieJar --basic --user "Username:Password" https://datafeeds.emailsecurity.symantec.com/all?reset=2022-11-20T00:00:00Z

Use the cookie (You can replace the URL specified in additional information)
curl -v -b cookieJar --basic --user "Username:Password" https://datafeeds.emailsecurity.symantec.com/all

Additional Information