SearchManager.QueryAsync throwing error C# SDK
See original GitHub issueWhen calling below method it is giving error. “The API returned an error [BadRequest | pidgc8gv4igelb3i.0973aae7b72f661c48bff8d457adb46a0] bad_request - Bad Request”
var task = Task.Run(async () =>
{
var fields = new List<string>
{
BoxItem.FieldParent,
BoxItem.FieldName,
BoxItem.FieldSize,
BoxItem.FieldCreatedBy,
BoxItem.FieldCreatedBy,
BoxItem.FieldPathCollection,
BoxFolder.FieldCreatedBy,
BoxFolder.FieldPathCollection,
BoxFolder.FieldItemCollection,
BoxFolder.FieldSyncState
};
return await userClient.SearchManager.QueryAsync(query: searchKeyword, fields: fields, type: "folder");
});
return task.Result.Entries ?? new List<BoxItem>();
Rest all methods working good.
Issue Analytics
- State:
- Created 2 years ago
- Comments:34 (15 by maintainers)
Top Results From Across the Web
[.NET] Issue with QueryAsync
Hi, I'm trying to retrieve the folder_id based on a specific name (which is UID form like '2b1c3292-bf94-4b26-b43d-b4fe6afb5106'), but I...
Read more >Box API Search
How to make query optional here, I want to invoke the call like below, but API throwing bad request error. var items =...
Read more >box - Bountysource
The box SDK natively handles retry attempts and there seems to be no way to get the retry attempt logs. Is there a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@antusus This seems to be working fine, but still keep it open will update you by tomorrow.
This is still not resolved check your box ticket.
Thanks
Sent from my Phone
On 14-Dec-2021, at 7:28 PM, Kamil Berdychowski @.***> wrote:
Closed #756https://github.com/box/box-windows-sdk-v2/issues/756.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/box/box-windows-sdk-v2/issues/756#event-5764353139, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABQSEXZ4Z6NPWXFJKPPEYETUQ5EPFANCNFSM5FXU34GQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.