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

7.7.1 breaks google event search #615

Open
joeswiggin opened this issue Jan 15, 2025 · 1 comment · May be fixed by #618
Open

7.7.1 breaks google event search #615

joeswiggin opened this issue Jan 15, 2025 · 1 comment · May be fixed by #618
Labels

Comments

@joeswiggin
Copy link

Describe the bug
The change in 7.7.1 breaks event list calls for google calendar when sending an array of values for the eventType ListEventQueryParams

To Reproduce
For a google integration, call the following:

nylas.events.list({ eventType: ['default', 'outOfOffice', 'focusTime'] })

The response returns a 400:

{
  error_obj: {
    code: 400,
    message: "Invalid string value: 'default,outOfOffice,focusTime'.  Allowed values: [birthday, default, focusTime, fromGmail, outOfOffice, workingLocation]"
  }
}

Expected behavior
When sending an array of ListEventQueryParams to a google calendar integration, the request is formed in a legal way for the google api and no errors are returned.

SDK Version:
I believe this change was introduced in 7.7.1

Additional context
If I roll back to my previous version, it works properly (7.5.2). We experienced this when updating the sdk.

@joeswiggin joeswiggin added the bug label Jan 15, 2025
@AaronDDM
Copy link
Collaborator

Looks like this is the PR that broke it, #606. I shall take a look, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants