I have…
- [x ] Read the following guideline: https://docs.squidex.io/01-getting-started/installation/troubleshooting-and-support. I understand that my support request might get deleted if I do not follow the guideline.
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
We are currently using the ClientLibrary create and get content from our app in our C# solution.
Some times, multiple times a day we a 500 exception when using the library. We use the following code:
private async Task<string> GetSiteId(string siteHost)
{
var sites = _squidexClient.CreateContentsClient<Site, SiteData>("sites");
var resp = await sites.GetAsync(new ContentQuery
{
Filter = $"data/host/iv eq '{siteHost}'"
});
var siteId = "";
if (resp.Total > 0)
{
siteId = resp.Items[0].Id;
}
return siteId;
}
This works fine and we can get the content normally. But sometimes we get the following exception: https://pastebin.com/fMbvEa57 (Sorry for the danish language)
We have some retry functionality, and 9/10 times it works the second time.
What I could find about the 995 error is that the error comes since you try to continue read from the socket when it has most likely been closed.
Expected behavior
I expect it to succeed for every request with no exceptions thrown
Minimal reproduction of the problem
Environment
- [x ] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Version: 5.2.0
Browser:
- [ ] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others: