[ ] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.
I’m submitting a…
[ ] Regression (a behavior that stopped working in a new release)
[x ] Bug report
[ ] Performance issue
[ ] Documentation issue or request
Current behavior
Squidex.ClientLibrary (Nuget C#).
Define IContentsClient.
Get items from ids - HashSet type.
GetAsync(ids)
Observe in proxy tool and see the request url
<Base_url>/api/content/<project_name>/?ids=<ids>
The request url return 404 not found.
(It seems missing <shema_name> in the url (like other GetAsync() request).
Expected behavior
It should return list of contents from request ids.
Hi, I’m pretty sure the thing configured properly.
(Validate by do successfully for Create/Get/Update etc at the same schema.)
Permission, I checked it and all fine as I have full access to my app.
(GetAsync() also working fine for me).
I have an ‘alternative’ way to fix my issue.
Here how I do
// ids is the a List<Guid>
// This doesn't work as described above :).
// var result = await <myContentClient>.GetAsync(ids.ToHashSet());
// Temporary using filter OData query instead.
var filter = string.Join(",", ids.Select(id => "'" + id.ToString() + "'"));
var result = await <myContentClient>.GetAsync(new ContentQuery
{
Filter = $"id in ({filter})"
});
return result.Items;
I contacted to team who set up the installation and yes, it’s too old.
(I don’t have exactly version number right now).
I assume it’s earlier than 3.0, then we can close this ticket.