Closed daffl closed 8 years ago
It should be. Error conversion is happening i https://github.com/feathersjs/feathers-socket-commons/blob/master/src/client.js#L77 using https://github.com/feathersjs/feathers-errors/blob/master/src/index.js#L206. How do you know it is not a feathers-errors
Error
object? It normally doesn't give much away by just using console.log
, you will have to call err.toJSON
to see all properties.
@daffl My bad. Thanks for the info, I guess I was hitting some other problem when I was trying to access err.errors & it was throwing undefined, but might for a different reason altogether
@daffl Hey David! Just curious if this bug was actually solved.
I am using feathers auk release, have a generated backend service i.e. default generated app. the middleware/index.js is configured as documented :
In the client I am working with React & have configured feathers-client as documented :
This is how I am calling a service
The error is never a
feathers-errors
object. It's always a stacktrace, saying validation failed & I have gone over the documentation looking for any specific error handling configuration with respect to socketio.Please suggest if I am missing something obvious to make it work.