Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Plus moment post fails because of "vault" problem #115

Closed
rafipass opened this issue Dec 10, 2013 · 1 comment
Closed

Google Plus moment post fails because of "vault" problem #115

rafipass opened this issue Dec 10, 2013 · 1 comment
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@rafipass
Copy link

The following error is received from Google's servers
Error: Invalid string value: '{collection}'. Allowed values: [vault]
My code:

client
  .plus.moments.insert({userId: 'me'}, 'vault', req.body.message)
  .withAuthClient(gOauth)
  .execute(callback);

The same error occurs no matter what type of object specified for the second argument.

  {collection: 'vault'}
  ["vault"]
  {vault: []}

and even when I pass vault in as it's defined your library:

  var vault = { 
    type: 'string',
    required: true,
    enum: [ 'vault' ],
    location: 'path'
  }

all produce an identical error.

The only similar error I could find was here: https://code.google.com/p/google-plus-platform/issues/detail?id=658
(although this error is for the clientside javascript library)

@rafipass rafipass reopened this Dec 10, 2013
@afirstenberg
Copy link

All parameters specified by the API documentation should be part of the same object. So instead of
.plus.moments.insert({userId: 'me'}, 'vault', req.body.message)
you should probably have something like
.plus.moments.insert({userId: 'me', collection: 'vault'}, req.body.message)

@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 6, 2020
This was referenced Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants