Skip to content

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

@tokudu

Description

@tokudu

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);
        });

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type
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