variable [DATA] doesn't exist for (some) DELETE requests

Skip to first unread message

Daniel Lancelot

Sep 15, 2017, 1:14:58 PM9/15/17
to Taffy Users

I'm in the process of integration testing of a TAFFY API which has been migrated from ACF 9.0.1 on IIS 7.5 on Window 2008 R2, to Lucee on IIS (10) on Windows 2016.

API has been in production against the previous  environment and has been working well for quite some time (6 months since last major update, several years before).

I've complete internal testing of all API methods, resolving any issues I saw (places I was depending on ACF specific implementation detail) and all tests have complete successfully.

I'm now running tests in conjunction with another supplier, and am running into a strange issue when they are attempting to send a DELETE request to the API.

The delete request is failing within line 12 of taffy.core.baseDeserializer with the error variable [DATA] doesn't exist

This seems to me as if the call to deserializeJSON(arguments.body) on the line above must be returning a null value.

Bearing in mind this is being called (indirectly) from

...I'm struggling to see how this code could be reached if the body was empty... and what the body content could be to result in deserializeJSON(arguments.body) returning null when isJson(arguments.body) must have returned true on the preceding lines...

I've asked the supplier to provide an exact replay of their HTTP request (seeing as this is erroring before I get a chance to log the request content) - but I am stumped as to what could be going on here.

Can anyone advise what may be happening here?



Daniel Lancelot

Sep 15, 2017, 2:06:08 PM9/15/17
to Taffy Users

Finally managed to reproduce this issue.

If the http body is: 


Then the error variable [DATA] doesn't exist is thrown as above.

<cfif len(requestObj.body) AND requestObj.body != "null">

I'll test and submit a pull request if that works.



Daniel Lancelot

Sep 15, 2017, 2:08:05 PM9/15/17
to Taffy Users

Daniel Lancelot

Sep 15, 2017, 2:52:09 PM9/15/17
to Taffy Users

On Friday, 15 September 2017 18:14:58 UTC+1, Daniel Lancelot wrote:

Adam Tuttle

Sep 15, 2017, 5:04:44 PM9/15/17
to Taffy Users
Thanks for the PR Dan! Merged!


You received this message because you are subscribed to the Google Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit

Reply all
Reply to author
0 new messages