{"action":"created","issue":{"url":"https://api.github.com/repos/samtecspg/articulate/issues/320","repository_url":"https://api.github.com/repos/samtecspg/articulate","labels_url":"https://api.github.com/repos/samtecspg/articulate/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/samtecspg/articulate/issues/320/comments","events_url":"https://api.github.com/repos/samtecspg/articulate/issues/320/events","html_url":"https://github.com/samtecspg/articulate/issues/320","id":360309217,"node_id":"MDU6SXNzdWUzNjAzMDkyMTc=","number":320,"title":"Webhook not working for body type json","user":{"login":"pnija","id":7920806,"node_id":"MDQ6VXNlcjc5MjA4MDY=","avatar_url":"https://avatars3.githubusercontent.com/u/7920806?v=4","gravatar_id":"","url":"https://api.github.com/users/pnija","html_url":"https://github.com/pnija","followers_url":"https://api.github.com/users/pnija/followers","following_url":"https://api.github.com/users/pnija/following{/other_user}","gists_url":"https://api.github.com/users/pnija/gists{/gist_id}","starred_url":"https://api.github.com/users/pnija/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnija/subscriptions","organizations_url":"https://api.github.com/users/pnija/orgs","repos_url":"https://api.github.com/users/pnija/repos","events_url":"https://api.github.com/users/pnija/events{/privacy}","received_events_url":"https://api.github.com/users/pnija/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-09-14T13:39:55Z","updated_at":"2018-09-17T01:42:22Z","closed_at":null,"author_association":"NONE","body":"- Did you download a release or pull from Master? Which release?\r\n    -- Working form release - v0.11.2\r\n- What operating system are you running?\r\n   -- Ubuntu 16.04\r\n- Are you running locally or in the cloud?\r\n  -- Running locally\r\n- Which browser are you using?\r\n  -- Chrome : Version 69\r\n---------------------------------------------------\r\nSetup the articulate in local successfully. So when i try to  enable a webhook definition in an intent it not working and returning \"internal server error\". \r\n\r\nSyntaxError: Uncaught error: Unexpected token b in JSON at position 16\r\napi_1       |     at JSON.parse (<anonymous>)\r\napi_1       |     at module.exports (/usr/src/app/modules/agent/tools/callWebhook.agent.tool.js:23:195)\r\napi_1       |     at module.exports (/usr/src/app/modules/agent/tools/respondFulfilledIntent.agent.tool.js:28:9)\r\napi_1       |     at module.exports (/usr/src/app/modules/agent/tools/respondIntent.agent.tool.js:137:9)\r\napi_1       |     at Object.module.exports [as respond] (/usr/src/app/modules/agent/tools/respond.agent.tool.js:219:17)\r\napi_1       |     at Async.waterfall (/usr/src/app/modules/agent/controllers/converse.agent.controller.js:101:24)\r\napi_1       |     at nextTask (/usr/src/app/node_modules/async/dist/async.js:5274:14)\r\napi_1       |     at next (/usr/src/app/node_modules/async/dist/async.js:5281:9)\r\napi_1       |     at /usr/src/app/node_modules/async/dist/async.js:906:16\r\napi_1       |     at Async.parallel (/usr/src/app/modules/agent/controllers/converse.agent.controller.js:78:24)\r\n\r\n![agent_webhook_error](https://user-images.githubusercontent.com/7920806/45553894-b6e39f80-b852-11e8-90da-83331cc9b979.png)\r\n\r\n\r\n\r\nThe error telling that it not a proper json.\r\n\r\n---------------------------------------------------------------------------------------------------\r\nIn webhook definition my request body json looks like this:\r\n```\r\n{\r\n\t\"text\": \"{{text}}\",\r\n\t\"intent\": \"{{JSONstringify intent}}\",\r\n\t\"slots\": \"{{JSONstringify slots}}\"\r\n}\r\n\r\n```\r\nRequest Body Type: JSON\r\n\r\nit does'nt trigger the error when  Body Type set to None. Our Back end is python. But When using None as body type webhook triggered the POST http request but the request body is empty. I did't get any values in request body. What was the issue? is it with the above json?. "},"comment":{"url":"https://api.github.com/repos/samtecspg/articulate/issues/comments/421869997","html_url":"https://github.com/samtecspg/articulate/issues/320#issuecomment-421869997","issue_url":"https://api.github.com/repos/samtecspg/articulate/issues/320","id":421869997,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTg2OTk5Nw==","user":{"login":"avinash-ts","id":26868360,"node_id":"MDQ6VXNlcjI2ODY4MzYw","avatar_url":"https://avatars3.githubusercontent.com/u/26868360?v=4","gravatar_id":"","url":"https://api.github.com/users/avinash-ts","html_url":"https://github.com/avinash-ts","followers_url":"https://api.github.com/users/avinash-ts/followers","following_url":"https://api.github.com/users/avinash-ts/following{/other_user}","gists_url":"https://api.github.com/users/avinash-ts/gists{/gist_id}","starred_url":"https://api.github.com/users/avinash-ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avinash-ts/subscriptions","organizations_url":"https://api.github.com/users/avinash-ts/orgs","repos_url":"https://api.github.com/users/avinash-ts/repos","events_url":"https://api.github.com/users/avinash-ts/events{/privacy}","received_events_url":"https://api.github.com/users/avinash-ts/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T01:42:22Z","updated_at":"2018-09-17T01:42:22Z","author_association":"NONE","body":"you are right..\r\nNow it has reached out to my local app. However i got an error at application end \r\nCaused by: org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token.\r\n\r\n I have built a REST service to receive an POJO with two fields text and intent and got this error. If you can recommend on the object type that i should use will be helpful.\r\n\r\nI have few other questions. I am trying set up a browser based chatbot on our enterprise application and trying to pilot articulate now to make a case to our executives, but have following questions.\r\n\r\n1. Articulate claims this is a pre release only, when shall we have a prod ready version?\r\n2.  Since we are planning to build browser based chatbot, please share any docs or information on the articulate web service (installed on our premise) that chatbot should call for each user input.\r\n"}}
{"actor":{"display_login":"avinash-ts"}}