question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SearchManager.QueryAsync throwing error C# SDK

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:34 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
jkyadavcommented, Oct 21, 2021

@antusus This seems to be working fine, but still keep it open will update you by tomorrow.

0reactions
jkyadavcommented, Dec 14, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found