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

Error when calling messages.search().count #416

Closed
hudxy opened this issue May 1, 2023 · 1 comment · Fixed by #443
Closed

Error when calling messages.search().count #416

hudxy opened this issue May 1, 2023 · 1 comment · Fixed by #443
Labels

Comments

@hudxy
Copy link

hudxy commented May 1, 2023

Describe the bug
Not sure if this is a bug or feature request but calling .count on SearchCollection object results in the error Nylas::InvalidRequest: Unexpected query parameters set(['view'])

To Reproduce
Some steps involved to reproduce the bug and any code samples you can share.

> Nylas::API.new(app_id: <app_id>, app_secret: <app_secret>, access_token: <access_token>).messages.search(<search_string>).count
Nylas::InvalidRequest: Unexpected query parameters set(['view'])

Expected behavior
This method should return the number of messages found from the search query.

SDK Version:
5.14.0

Additional context
Related to: #378

@hudxy hudxy added the bug label May 1, 2023
@mrashed-dev
Copy link
Contributor

@hudxy Thanks for opening this issue, we will investigate and follow up with any update!

mrashed-dev added a commit that referenced this issue Dec 21, 2023
This PR adds count support for SearchCollection type. Closes #416.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants