JSON POST Plugin Error
Confluence User - 14 Apr, 2017
Hi guys,
I am currently on v6 beta and working on something with the JSON POST Plugin.
It looks like the https post request goes out properly and that I get a response from the server.
However, the response fields are not stored and I get this error no matter what:
ERROR 14 Apr 2017 17:15:20 org.joget.plugin.property.service.PropertyUtil - Missing value at character 1 org.json.JSONException: Missing value at character 1 at org.json.JSONTokener.syntaxError(JSONTokener.java:496) at org.json.JSONTokener.nextValue(JSONTokener.java:404) at org.json.JSONObject.<init>(JSONObject.java:191) at org.json.JSONObject.<init>(JSONObject.java:403) at org.joget.plugin.property.service.PropertyUtil.getPropertiesValueFromJson(PropertyUtil.java:74) at org.joget.JsonPostTool.execute(JsonPostTool.java:123) at org.joget.apps.app.service.AppWorkflowHelper.executeTool(AppWorkflowHelper.java:124) at org.joget.workflow.shark.WorkflowToolActivityHandler.executeActivity(WorkflowToolActivityHandler.java:69) )
This is the response from the server when testing the POST request in another tool:
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdXRob3JpemF0aW9uIjozMTg5MTE1NTMyNTA0",
"token_type": "bearer",
"expires_in": 3600,
"data": {
"id": 2063343322,
"name": "Eric",
"email": "Eric@sdfcsd.de"
},
"refresh_token": "0/d45tdfxbgdfgdndfg03fa1efaa59"
}
Config:
Any ideas what the problem might be?
json;plugins;tools
