question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

400 - Missing required field: member

See original GitHub issue
{ errors: 
   [ { domain: 'global',
       reason: 'required',
       message: 'Missing required field: member' } ],
  code: 400,
  message: 'Missing required field: member' }

I get this error when I run the following:

var request = client.admin.members.insert({
    groupKey: "some_group@example.com"
  , email: "me@example.com"
});

I was authenticated successfully (I received the access token and so on) but when I execute the request above it callbacks that error.

What member field am I supposed to add?

It works fine in API Explorer using groupKey and email fields.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
erikberncommented, Oct 20, 2016

I struggled with the same issue. Had to do this to get it working

client.members.insert({
  auth: jwtClient,
  groupKey: 'foo@bar.baz',
  resource: {
    email: 'test@test.com'
  }
}, function(err, res) { });

Seems like the syntax changed since the thread above?

0reactions
rpavezcommented, Jan 30, 2019

Update, use like this now*

const response = await directory.groups.insert(
      {
        auth: jwtClient,
        resource: {
          name: "Foo Foo",
          email: 'testing12345@foo.com'
        }
      }
    );
Read more comments on GitHub >

github_iconTop Results From Across the Web

Insert member - code: 400, message: Missing required field
400 missing required field member. My member variable IS the member. I've tried the same groupKey and body in the google API explorer...
Read more >
Missing required field - Common causes and quick fixes - Opster
This guide will help you check for common problems that cause the log ” Missing required field ” to appear. To understand the...
Read more >
REQUIRED_FIELD_MISSING:Required fields are missing ...
A required lookup field (parent object) is missing from the data template. Some implementations, such as Salesforce CPQ, expect certain child ...
Read more >
How do I resolve 'Missing required property: connection' Error?
I am trying to create a user following the approach on the link below: https://auth0.com/docs/metadata/apis#set-metadata-fields-on-creation ...
Read more >
Error: invalid_request - Missing r... | Support | RT GSync
Error Details: 400. That's an error. Error: invalid_request. Missing required parameter: redirect_uri. Learn more. Request Details scope= response_type=code ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found