{"action":"created","issue":{"url":"https://api.github.com/repos/senecajs/seneca-web/issues/30","repository_url":"https://api.github.com/repos/senecajs/seneca-web","labels_url":"https://api.github.com/repos/senecajs/seneca-web/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/senecajs/seneca-web/issues/30/comments","events_url":"https://api.github.com/repos/senecajs/seneca-web/issues/30/events","html_url":"https://github.com/senecajs/seneca-web/issues/30","id":119900309,"number":30,"title":"Is there a way to consume apis provided by another microservice by using map?","user":{"login":"puncha","id":3054170,"avatar_url":"https://avatars.githubusercontent.com/u/3054170?v=3","gravatar_id":"","url":"https://api.github.com/users/puncha","html_url":"https://github.com/puncha","followers_url":"https://api.github.com/users/puncha/followers","following_url":"https://api.github.com/users/puncha/following{/other_user}","gists_url":"https://api.github.com/users/puncha/gists{/gist_id}","starred_url":"https://api.github.com/users/puncha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puncha/subscriptions","organizations_url":"https://api.github.com/users/puncha/orgs","repos_url":"https://api.github.com/users/puncha/repos","events_url":"https://api.github.com/users/puncha/events{/privacy}","received_events_url":"https://api.github.com/users/puncha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/senecajs/seneca-web/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2015-12-02T09:26:06Z","updated_at":"2016-09-03T10:26:26Z","closed_at":null,"body":"```JavaScript\r\nseneca.client({host: 'localhost', port: 8081, pin:'role:math'})\r\nseneca.act('role:web',{use:{\r\n  prefix: '/math',\r\n  pin: {role:'math',cmd:'*'},\r\n  map:{\r\n    sum: true\r\n  }\r\n}})\r\n```"},"comment":{"url":"https://api.github.com/repos/senecajs/seneca-web/issues/comments/244538954","html_url":"https://github.com/senecajs/seneca-web/issues/30#issuecomment-244538954","issue_url":"https://api.github.com/repos/senecajs/seneca-web/issues/30","id":244538954,"user":{"login":"mcdonnelldean","id":3625961,"avatar_url":"https://avatars.githubusercontent.com/u/3625961?v=3","gravatar_id":"","url":"https://api.github.com/users/mcdonnelldean","html_url":"https://github.com/mcdonnelldean","followers_url":"https://api.github.com/users/mcdonnelldean/followers","following_url":"https://api.github.com/users/mcdonnelldean/following{/other_user}","gists_url":"https://api.github.com/users/mcdonnelldean/gists{/gist_id}","starred_url":"https://api.github.com/users/mcdonnelldean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcdonnelldean/subscriptions","organizations_url":"https://api.github.com/users/mcdonnelldean/orgs","repos_url":"https://api.github.com/users/mcdonnelldean/repos","events_url":"https://api.github.com/users/mcdonnelldean/events{/privacy}","received_events_url":"https://api.github.com/users/mcdonnelldean/received_events","type":"User","site_admin":false},"created_at":"2016-09-03T10:26:25Z","updated_at":"2016-09-03T10:26:25Z","body":"Oh! I think I know what this is. I was finalising the name and was refactoring names. I bet I've mangled mapKeys into valuekeys by replacing map with value.\n\nI've a couple of hours set aside today so I can fix. I ran the examples and changed at the last minute. Typical :)?\n\nKindest Regards,\n\nDean\n\nOn 3 Sep 2016, at 11:07, Oscar Linde <notifications@github.com<mailto:notifications@github.com>> wrote:\n\n\nI'm getting them same error using the hapi & express examples as well. I don't think lodash has a _valueKeys function, at least i couldn't find it in their docs.\n\nEventually after some tweaking in map-routes i managed to get my actions triggered, but when responding to the action seneca crashed.\n\nHere is the log output:\n\n{\n    \"notice\": \"seneca: Action role:web,spec:* failed: _.valueKeys is not a function.\",\n    \"code\": \"act_execute\",\n    \"err\": {\n        \"eraro\": true,\n        \"orig\": {},\n        \"code\": \"act_execute\",\n        \"seneca\": true,\n        \"package\": \"seneca\",\n        \"msg\": \"seneca: Action role:web,spec:* failed: _.valueKeys is not a function.\",\n        \"details\": {\n            \"message\": \"_.valueKeys is not a function\",\n            \"pattern\": \"role:web,spec:*\",\n            \"instance\": \"Seneca/kostu5ageht9/1472896913338/12346/3.0.0/-\",\n            \"orig$\": {},\n            \"message$\": \"_.valueKeys is not a function\",\n            \"plugin\": {}\n        },\n        \"callpoint\": \"at /home/linde/js/seneca-web/lib/map-routes.js:14:7\"\n    },\n    \"actid\": \"jkw6jq39m614/9w988wosr2gm\",\n    \"msg\": {\n        \"spec\": [{\n            \"prefix\": \"/todo\",\n            \"pin\": \"role:todo,cmd:*\",\n            \"map\": {\n                \"list\": true,\n                \"edit\": {\n                    \"autoreply\": false,\n                    \"GET\": true,\n                    \"POST\": true\n                }\n            }\n        }, {\n            \"prefix\": \"/admin\",\n            \"pin\": \"role:admin,cmd:*\",\n            \"map\": {\n                \"validate\": {\n                    \"alias\": \"/login\",\n                    \"GET\": true\n                },\n                \"signoff\": true\n            }\n        }],\n        \"role\": \"web\",\n        \"meta$\": {\n            \"id\": \"jkw6jq39m614/9w988wosr2gm\",\n            \"tx\": \"9w988wosr2gm\",\n            \"start\": 1472896913430,\n            \"pattern\": \"role:web,spec:*\",\n            \"action\": \"(8l5fwoddtl4n)\",\n            \"entry\": true,\n            \"chain\": [],\n            \"sync\": false,\n            \"plugin_name\": \"web\",\n            \"plugin_tag\": \"-\"\n        },\n        \"plugin$\": {\n            \"name\": \"web\",\n            \"tag\": \"-\"\n        },\n        \"tx$\": \"9w988wosr2gm\"\n    },\n    \"entry\": true,\n    \"prior\": [],\n    \"meta\": {\n        \"plugin_name\": \"web\",\n        \"plugin_tag\": \"-\",\n        \"plugin_fullname\": \"web\",\n        \"raw\": {\n            \"role\": \"web\",\n            \"spec\": \"*\"\n        },\n        \"sub\": false,\n        \"client\": false,\n        \"args\": {\n            \"role\": \"web\",\n            \"spec\": \"*\"\n        },\n        \"rules\": {},\n        \"id\": \"(8l5fwoddtl4n)\",\n        \"pattern\": \"role:web,spec:*\",\n        \"msgcanon\": {\n            \"role\": \"web\",\n            \"spec\": \"*\"\n        },\n        \"priorpath\": \"\"\n    },\n    \"client\": false,\n    \"listen\": false,\n    \"transport\": {},\n    \"kind\": \"act\",\n    \"case\": \"ERR\",\n    \"duration\": 2,\n    \"level\": \"error\",\n    \"seneca\": \"kostu5ageht9/1472896913338/12346/3.0.0/-\",\n    \"when\": 1472896913442\n}\n\n\n-\nYou are receiving this because you were mentioned.\nReply to this email directly, view it on GitHub<https://github.com/senecajs/seneca-web/issues/30#issuecomment-244538259>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADdT6VexpUXnRLmU6sQR2X_9j0L04YG0ks5qmUbzgaJpZM4Gs-XJ>.\n"}}
{"actor":{"display_login":"mcdonnelldean"}}