{"action":"opened","issue":{"url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/5569","repository_url":"https://api.github.com/repos/postmanlabs/postman-app-support","labels_url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/5569/labels{/name}","comments_url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/5569/comments","events_url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/5569/events","html_url":"https://github.com/postmanlabs/postman-app-support/issues/5569","id":384183379,"node_id":"MDU6SXNzdWUzODQxODMzNzk=","number":5569,"title":"Pre-request script problem","user":{"login":"raysefo","id":859957,"node_id":"MDQ6VXNlcjg1OTk1Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/859957?v=4","gravatar_id":"","url":"https://api.github.com/users/raysefo","html_url":"https://github.com/raysefo","followers_url":"https://api.github.com/users/raysefo/followers","following_url":"https://api.github.com/users/raysefo/following{/other_user}","gists_url":"https://api.github.com/users/raysefo/gists{/gist_id}","starred_url":"https://api.github.com/users/raysefo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raysefo/subscriptions","organizations_url":"https://api.github.com/users/raysefo/orgs","repos_url":"https://api.github.com/users/raysefo/repos","events_url":"https://api.github.com/users/raysefo/events{/privacy}","received_events_url":"https://api.github.com/users/raysefo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-26T05:50:35Z","updated_at":"2018-11-26T05:50:35Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\nI am using v6.5.2. I am trying to send body-raw-json request.\r\n\r\nHere is my sample json body:\r\n{\r\n    \"referenceId\": \"700078925111\",\r\n    \"productCode\": \"001002461285\",\r\n    \"quantity\": \"1\",\r\n    \"version\": \"V1\",\r\n    \"signature\": {{Signature}},\r\n    \"applicationCode\": \"52e7cf966b724749a7c4efadc3727ed7\"\r\n}\r\nIn my pre-request script I have this script;\r\nvar ApplicationCode = request.data[\"applicationCode\"];\r\nvar Version=request.data[\"version\"];\r\nvar ReferenceId=request.data[\"referenceId\"];\r\nvar ProductCode=request.data[\"productCode\"];\r\nvar Quantity=request.data[\"quantity\"];\r\nvar SecretKey=\"e56067172e61\";\r\nvar hashText = ApplicationCode+ProductCode+Quantity+ReferenceId+Version+SecretKey;\r\nvar encryption = CryptoJS.MD5(hashText).toString();\r\npostman.setEnvironmentVariable(\"Signature\", encryption);\r\n\r\nIn my python code I am checking the request as follows and getting request was not JSON.\r\nif request.is_json:\r\n...\r\nelse:\r\nreturn jsonify(status=\"Request was not JSON\")\r\n\r\nAm I getting the Signature variable wrong?\r\n"}}
{"actor":{"display_login":"raysefo"}}