Skip to content

Validation failed  #117

Description

@nishantt12

Receiving validation failed at:

FB.setAccessToken(accessToken);
FB.api('/me', function (data) {
if (data && data.error) {
if (data.error.code === 'TIMEDOUT') {
return Errors.errorCustom(res, 'FACEBOOK TOKEN TIMEOUT');
} else {
return Errors.errorCustom(res, data.error);
}
} else {

}

});
}

Error: { [ValidationError: User validation
message: 'User validation failed',
name: 'ValidationError',
errors:
{ name:
{ [ValidatorError: Path name
message: 'Path name is req
name: 'ValidatorError',
properties: [Object],
kind: 'required',
path: 'name',
value: undefined } } }
{ [ValidationError: User validation
message: 'User validation failed',
name: 'ValidationError',
errors:
{ name:
{ [ValidatorError: Path name
message: 'Path name is req
name: 'ValidatorError',
properties: [Object],
kind: 'required',
path: 'name',
value: undefined } } }

Even though /me API is working fine at the client side. Any specify reason why I am receiving validation failed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions