Skip to content

calendarview request failing when too much data returned in 1.5.2 #158

@edlea

Description

@edlea

Making requests for a calendarview that returns more than a few events seems to cause a silent failure; i.e. the Promise from get() never resolves or rejects.

This is not the case with version 1.4.0 but happens repeatably with 1.5.2. By changing the date range in the below code example, this is fully reproducible. A short time gap, a single day for example, returns data as expected. For a longer time period, the code will simply stop executing before get() has resolved or rejected.

const microsoftGraph = require("@microsoft/microsoft-graph-client");
const token = process.env.TOKEN;
const client = microsoftGraph.Client.init({
    debugLogging: true,
    authProvider: (done) => {
        done(null, token);
    }
});

const startdatetime = "2018-01-01T00:00:00Z";
const enddatetime = "2018-01-31T00:00:00Z"; // Fails when big delta from startdatatime
const req = client.api(`me/calendar/calendarview?StartDateTime=${startdatetime}&EndDateTime=${enddatetime}`);
req.get().then(console.log).catch(console.error);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions