414 Errors when Accessing Entities API

16 views
Skip to first unread message

Robert Peterman

unread,
Oct 13, 2019, 1:37:44 PM10/13/19
to Dandelion Support Forum
I've been trying to run a group of about 200-300 tweets through the entities API and am getting a 414 error message which I understand to mean that my URL string was too long. 

I don't get this error when I cut down my tweet list to around 2,500 characters (15 tweets). From what I read from the documentation you are allowed to send requests of this size but you will be charged an extra unit for every 4000 characters - so I'm not sure what I'm doing wrong.

My POST request is as follows...

Giacomo Berardi

unread,
Oct 14, 2019, 11:34:51 AM10/14/19
to Dandelion Support Forum
Hi Robert,

please use the body of the POST request for input parameters, i.e. `text` should be the parameter of the URL encoded form of the request.
It is not advisable to use URI parameters for large input values.
Also consider that aggregating different tweets, from different domains, can alterate the results of entity extraction, because the tweet contexts used for disambiguating entity linking could be ambiguous.

Regards

Giacomo Berardi
Dandelion team
Reply all
Reply to author
Forward
0 new messages