{"action":"created","issue":{"url":"https://api.github.com/repos/feathersjs/feathers/issues/849","repository_url":"https://api.github.com/repos/feathersjs/feathers","labels_url":"https://api.github.com/repos/feathersjs/feathers/issues/849/labels{/name}","comments_url":"https://api.github.com/repos/feathersjs/feathers/issues/849/comments","events_url":"https://api.github.com/repos/feathersjs/feathers/issues/849/events","html_url":"https://github.com/feathersjs/feathers/issues/849","id":311188139,"number":849,"title":"Migration error: MethodNotAllowed(405) Provider 'socketio' can not call 'create","user":{"login":"Elminday","id":14983636,"avatar_url":"https://avatars0.githubusercontent.com/u/14983636?v=4","gravatar_id":"","url":"https://api.github.com/users/Elminday","html_url":"https://github.com/Elminday","followers_url":"https://api.github.com/users/Elminday/followers","following_url":"https://api.github.com/users/Elminday/following{/other_user}","gists_url":"https://api.github.com/users/Elminday/gists{/gist_id}","starred_url":"https://api.github.com/users/Elminday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elminday/subscriptions","organizations_url":"https://api.github.com/users/Elminday/orgs","repos_url":"https://api.github.com/users/Elminday/repos","events_url":"https://api.github.com/users/Elminday/events{/privacy}","received_events_url":"https://api.github.com/users/Elminday/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-04T11:20:36Z","updated_at":"2018-04-10T15:30:24Z","closed_at":null,"author_association":"NONE","body":"### Problem\r\n\r\nAfter migration to v3 feathers calling user service create method I get this error:\r\n\r\n_**MethodNotAllowed(405): Provider 'socketio' can not call 'create'. (disableMethod)**_\r\n\r\n**Module versions** (especially the part that's not working):\r\n    \"@feathersjs/socketio\": \"^3.2.0\",\r\n\r\n**NodeJS version**: 8.9.1\r\n\r\n**Operating System**: Ubuntu\r\n\r\n**Module Loader**:Webpack\r\n\r\nI added channel.js\r\n\r\n```\r\nmodule.exports = (app) => {\r\n  if (typeof app.channel !== 'function') {\r\n    return;\r\n  }\r\n\r\n  app.on('connection', (connection) => {\r\n    app.channel('anonymous').join(connection);\r\n  });\r\n\r\n  app.on('login', (authResult, { connection }) => {\r\n    if (connection) {\r\n      const user = connection.user;\r\n      app.channel('anonymous').leave(connection);\r\n      app.channel('authenticated').join(connection);\r\n    }\r\n  });\r\n\r\n  app.publish((data, hook) => { // eslint-disable-line no-unused-vars\r\n    app.channel('authenticated');\r\n  });\r\n};\r\n```\r\n\r\nand used channel in app.js\r\n\r\n```\r\n\r\nimport feathers from '@feathersjs/feathers';\r\nimport auth from '@feathersjs/authentication-client';\r\nimport socket from '@feathersjs/socketio-client';\r\nimport io from 'socket.io-client';\r\nimport channels from '../channels';\r\n\r\nlet instance = false;\r\nconst config = global.CONFIG;\r\nconst storage = (global.TYPE === 'CLIENT') ? window.localStorage : null;\r\nconst uri = ['http://', config.io.host, ':', config.io.port].join('');\r\nexport function app() {\r\n  if (instance) return instance;\r\n\r\n  instance = feathers()\r\n    .configure(socket(io(uri)))\r\n    .configure(channels)\r\n    .configure(auth({ storage }));\r\n\r\n  return instance;\r\n}\r\n\r\nexport function service(name) {\r\n  return app().service(name);\r\n}\r\n```\r\n\r\nIn my autoLoader.js class I changed from:\r\n\r\n```\r\nservice.before(require(dir + '/hooks.before.js').default);\r\nservice.after(require(dir + '/hooks.after.js').default);\r\n```\r\nto:\r\n```\r\nthis.app.hooks({\r\n    before: require(dir + '/hooks.before.js').default,\r\n    after: require(dir + '/hooks.after.js').default \r\n  });\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/feathersjs/feathers/issues/comments/380143632","html_url":"https://github.com/feathersjs/feathers/issues/849#issuecomment-380143632","issue_url":"https://api.github.com/repos/feathersjs/feathers/issues/849","id":380143632,"user":{"login":"daffl","id":338316,"avatar_url":"https://avatars0.githubusercontent.com/u/338316?v=4","gravatar_id":"","url":"https://api.github.com/users/daffl","html_url":"https://github.com/daffl","followers_url":"https://api.github.com/users/daffl/followers","following_url":"https://api.github.com/users/daffl/following{/other_user}","gists_url":"https://api.github.com/users/daffl/gists{/gist_id}","starred_url":"https://api.github.com/users/daffl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daffl/subscriptions","organizations_url":"https://api.github.com/users/daffl/orgs","repos_url":"https://api.github.com/users/daffl/repos","events_url":"https://api.github.com/users/daffl/events{/privacy}","received_events_url":"https://api.github.com/users/daffl/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T15:30:24Z","updated_at":"2018-04-10T15:30:24Z","author_association":"OWNER","body":"Yes, please also bring it up in https://github.com/feathers-plus/feathers-authentication-management."}}
{"actor":{"display_login":"daffl"}}