Hi all,
I'm getting a new error since Friday when calling Facebook Ads API and I was wondering how can I determine if thats a bug on Facebook end and mine? Or batchFB issue?
I'm using batchFB 2.1 r138.
The exception is:
java.lang.ClassCastException: org.codehaus.jackson.node.NullNode cannot be cast to org.codehaus.jackson.node.TextNode
at com.googlecode.batchfb.impl.GraphNodeExtractor.convert(GraphNodeExtractor.java:72)
at com.googlecode.batchfb.impl.GraphNodeExtractor.convert(GraphNodeExtractor.java:39)
Its happens (for example) when trying to update a bid - I get the following:
{"code":397,"headers":[{"name":"Connection","value":"close"},{"name":"Content-Type","value":"text/html; charset=utf-8"}],"body":null}
and on that I get the ClassCastException at com.googlecode.batchfb.impl.GraphNodeExtractor#convert where the instruction is: TextNode body = (TextNode) batchPart.get("body");
The expected behavior is go get something like the following:
{"code":200,"headers":[{"name":"Access-Control-Allow-Origin","value":"*"},{"name":"Cache-Control","value":"private, no-cache, no-store, must-revalidate"},{"name":"Connection","value":"close"},{"name":"Content-Type","value":"text/javascript; charset=UTF-8"},{"name":"Expires","value":"Sat, 01 Jan 2000 00:00:00 GMT"},{"name":"Pragma","value":"no-cache"}],"body":"true"}
--> the difference is at the end of the reply, "true" or "false" but not "budy":null.
Thank you,
Uri