Skip to content

Cloud code unable to reference Facebook auth data #1846

Closed
@antonfire

Description

@antonfire

Check out #1271 for an ideal bug report. The closer your issue report is to that one, the more likely we are to be able to help, and the more likely we will be to fix the issue quickly!

Many members of the community use Stack Overflow and Server Fault to ask questions. Read through the existing questions or ask your own!

For database migration help, please file a bug report at https://parse.com/help#report

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Environment Setup

  • Server: 2.2.10, node running on ASW Elastic Beanstalk
  • Database: Mlab

Steps to reproduce

When running cloud code in parse server 2.1.6 everything works fine, upon upgrade to 2.2.10 when referencing the Facebook user id held in authdata I get an authdata undefined error. I had similar issues when I attempted to upgrade to 2.2.7, see > #1579.

I am referencing authdata in the cloud function as follows:

var currentUserFacebookID = request.user.attributes.authData.facebook.id;

As noted above this works in v2.1.6.

Logs/Trace

Elastic beanstalk logs this as:

[31merror�[39m: Uncaught internal server error. [TypeError: Cannot read property 'facebook' of undefined] TypeError: Cannot read property 'facebook' of undefined
at /var/app/current/cloud/main.js:1149:74

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions