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

Batch Requests result in error Cannot read property 'rootUrl' of undefined #87

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

Comments

@tokudu
Copy link

tokudu commented Sep 10, 2013

Hi! Thank you for the awesome library.

I'm making batch requests to the Mirror API, and I get an error:

/Users/anton/projects/sothree/umano-server/server/node_modules/googleapis/lib/requests.js:93
  var rootUrl = url.parse(this.apiMeta.rootUrl),
                                      ^
TypeError: Cannot read property 'rootUrl' of undefined

Any ideas what's going on?

Here is my code:

        var batch = client.newBatchRequest();
        batch.add(..);
        batch.add(...);        
        batch.withAuthClient(oauth2Client).execute(function(err, data) {
          console.log(data);
          async_callback(err);
        });
@rakyll
Copy link
Contributor

rakyll commented Sep 11, 2013

#88 fixes, it was broken since we switched to ~0.4 and downgraded batch support to be experimental.

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