Closed joeinnes closed 5 years ago
Seems a change has been implemented upstream requiring you to pass params:
https://github.com/feathersjs/authentication-client/issues/108#issuecomment-421334346
Just came across this myself. Calling
todo.save()
on a FeathersVuexModel caused this error, but
todo.save({})
works
Is this also thrown from the populateAccessToken.js file in the Feathers authentication client? If so, I put in a PR earlier today for this.
On Sat, 15 Sep 2018, 13:09 Will Murray, notifications@github.com wrote:
Just came across this myself. Calling
todo.save() on a FeathersVuexModel caused this error, but
todo.save({}) works
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/feathers-plus/feathers-vuex/issues/156#issuecomment-421553282, or mute the thread https://github.com/notifications/unsubscribe-auth/AEfHRa57pjPqxJscISVn3FnmVcVY2QFBks5ubN_agaJpZM4WgUEe .
Also logged with Feathers: https://github.com/feathersjs/authentication-client/issues/108 @petebytes has created a repo: https://github.com/petebytes/trello-clone.git
Steps to reproduce
(First please check that this issue is not already solved as described here)
Expected behavior
When dispatching a create action, the access token should be populated onto the request, and the request sent to the server for processing.
Actual behavior
When dispatching a create action, there's an error when trying to populate the access token, and the request does not get sent to the server:
In particular, it seems to be the case that the hook.params is undefined, so when calling Object.assign, it fails.
System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
NodeJS version: 9.4.0
Operating System: macOS High Sierra
Browser Version: 68.0.3440.106 (Official Build) (64-bit)
React Native Version: Not using React Native
Module Loader: vue-cli-service (ie: webpack)