Apply operation - API - java.lang.NullPointerException

6 views
Skip to first unread message

Ariel Aziernicki

unread,
Oct 13, 2021, 8:15:11 AM10/13/21
to OpenRefine
Hi,

I hope I find you all well.

I having problems to use the OpenRefine API. I tried many different ways to make the request, but I have no luck. Is it working for anyone else?

I keep receiving a code 500 and the following logs:
14:52:00.151 [                   refine] POST /command/core/apply-operations (7900ms)
14:52:00.152 [          org.mortbay.log] /command/core/apply-operations (1ms)
java.lang.NullPointerException

This is the tranformation:
{'operations':[
  {
    "op": "core/column-addition",
    "description": "Create column",
    "engineConfig": {
      "mode": "row-based",
      "facets": []
    },
    "newColumnName": "test",
    "columnInsertIndex": 1,
    "baseColumnName": "brand_name",
    "expression": "grel:value.type()",
    "onError": "set-to-blank"
  }
]}

The response:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 INTERNAL_SERVER_ERROR</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /command/core/apply-operations. Reason:
<pre>    INTERNAL_SERVER_ERROR</pre></p><h3>Caused by:</h3><pre>java.lang.NullPointerException
</pre>
<hr /><i><small>Powered by Jetty://</small></i><br/>                                                
</body>
</html>



Reply all
Reply to author
Forward
0 new messages