{"action":"created","issue":{"url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs/issues/167","repository_url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs","labels_url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs/issues/167/comments","events_url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs/issues/167/events","html_url":"https://github.com/actions-on-google/actions-on-google-nodejs/issues/167","id":327403001,"node_id":"MDU6SXNzdWUzMjc0MDMwMDE=","number":167,"title":"Error in actions_intent_TRANSACTION_DECISION event","user":{"login":"vebester","id":814600,"node_id":"MDQ6VXNlcjgxNDYwMA==","avatar_url":"https://avatars0.githubusercontent.com/u/814600?v=4","gravatar_id":"","url":"https://api.github.com/users/vebester","html_url":"https://github.com/vebester","followers_url":"https://api.github.com/users/vebester/followers","following_url":"https://api.github.com/users/vebester/following{/other_user}","gists_url":"https://api.github.com/users/vebester/gists{/gist_id}","starred_url":"https://api.github.com/users/vebester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vebester/subscriptions","organizations_url":"https://api.github.com/users/vebester/orgs","repos_url":"https://api.github.com/users/vebester/repos","events_url":"https://api.github.com/users/vebester/events{/privacy}","received_events_url":"https://api.github.com/users/vebester/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-29T16:45:23Z","updated_at":"2018-05-31T11:12:37Z","closed_at":null,"author_association":"NONE","body":"Error in actions_intent_TRANSACTION_DECISION event.\r\ntextPayload:  \"SyntaxError: Unexpected token # in JSON at position 0\r\n    at Object.parse (native)\r\n    at createStrictSyntaxError (/var/tmp/worker/node_modules/body-parser/lib/types/json.js:157:10)\r\n    at parse (/var/tmp/worker/node_modules/body-parser/lib/types/json.js:83:15)\r\n    at /var/tmp/worker/node_modules/body-parser/lib/read.js:121:18\r\n    at invokeCallback (/var/tmp/worker/node_modules/raw-body/index.js:224:16)\r\n    at done (/var/tmp/worker/node_modules/raw-body/index.js:213:7)\r\n    at IncomingMessage.onEnd (/var/tmp/worker/node_modules/raw-body/index.js:273:7)\r\n    at emitNone (events.js:86:13)\r\n    at IncomingMessage.emit (events.js:185:7)\r\n    at endReadableNT (_stream_readable.js:974:12)\"\r\n\r\n\r\nAfter invoking new TransactionDecision(valueSpec) with valueSpec:\r\n{\"paymentOptions\":{\"googleProvidedOptions\":{\"prepaidCardDisallowed\":false,\"supportedCardNetworks\":[\"VISA\",\"MASTERCARD\",\"AMEX\"],\"tokenizationParameters\":{\"tokenizationType\":\"PAYMENT_GATEWAY\",\"parameters\":{\"gateway\":\"stripe\",\"stripe:publishableKey\":\"pk_test_1234\",\"stripe:version\":\"2018-05-21\"}}}},\"orderOptions\":{\"requestDeliveryAddress\":false},\"proposedOrder\":{\"id\":\"21\",\"cart\":{\"merchant\":{\"id\":\"lenka_store_1\",\"name\":\"Lenka Store\"},\"lineItems\":[{\"name\":\"Adding balance to your account\",\"id\":\"product_1\",\"price\":{\"amount\":{\"currencyCode\":\"USD\",\"units\":1},\"type\":\"ACTUAL\"},\"quantity\":1,\"type\":\"REGULAR\"}],\"notes\":\"Your order #21 in Lenka Store\",\"otherItems\":[]},\"otherItems\":[],\"totalPrice\":{\"amount\":{\"currencyCode\":\"USD\",\"units\":1},\"type\":\"ESTIMATE\"}}}\r\n\r\nand pressing Place order in Google Assistant we have got in the our intent with actions_intent_TRANSACTION_DECISION event this error,\r\nand webhook in that intent is not called and we cannot receive and handle userDecision === 'ORDER_ACCEPTED'\r\n\r\nproject: lenka-ai\r\nsandbox mode"},"comment":{"url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs/issues/comments/393497122","html_url":"https://github.com/actions-on-google/actions-on-google-nodejs/issues/167#issuecomment-393497122","issue_url":"https://api.github.com/repos/actions-on-google/actions-on-google-nodejs/issues/167","id":393497122,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzQ5NzEyMg==","user":{"login":"vebester","id":814600,"node_id":"MDQ6VXNlcjgxNDYwMA==","avatar_url":"https://avatars0.githubusercontent.com/u/814600?v=4","gravatar_id":"","url":"https://api.github.com/users/vebester","html_url":"https://github.com/vebester","followers_url":"https://api.github.com/users/vebester/followers","following_url":"https://api.github.com/users/vebester/following{/other_user}","gists_url":"https://api.github.com/users/vebester/gists{/gist_id}","starred_url":"https://api.github.com/users/vebester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vebester/subscriptions","organizations_url":"https://api.github.com/users/vebester/orgs","repos_url":"https://api.github.com/users/vebester/repos","events_url":"https://api.github.com/users/vebester/events{/privacy}","received_events_url":"https://api.github.com/users/vebester/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T11:12:37Z","updated_at":"2018-05-31T11:12:37Z","author_association":"NONE","body":"@nareshjiva \r\ni did not find the solution\r\nmy app and the example app  https://github.com/actions-on-google/dialogflow-transactions-nodejs\r\nare getting the same error no matter with actionProvidedOptions or googleProvidedOptions\r\n\r\nactions-on-google did not receive proper response from GA after placing the order or did not handle it properly"}}
{"actor":{"display_login":"vebester"}}