I have…
- [ x] 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.
In Visual Studio when debugging I get on CreateAsync:
Exception thrown: ‘Squidex.ClientLibrary.SquidexException’ in System.Private.CoreLib.dll
Exception thrown: ‘Squidex.ClientLibrary.SquidexException’ in System.Private.CoreLib.dll
Not seeing anything else in the squidex docker container logs.
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 throws an exception during CreateAsync() for one of my schemas.
Expected behavior
Squidex should not throw an exception.
Minimal reproduction of the problem
You can use this code:
var userAgent = HttpContext.Request.Headers[“User-Agent”].ToString();
newReview.UserAgent = new Dictionary<string, string>
{
{squidexCultureName, userAgent }
};
var review = await _reviewsClient.CreateAsync(newReview, true); <-- Throws the exception.
Environment
- [ x] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Version: [VERSION] Never know where to look? Could you please add some sort of “click to copy squidex version number” feature in the Squidex editorial UI, somewhere in the top right profile dropdown menu?
The squidex image is probably 2-4 months old. So not the latest, but pretty recent, still. So you know.
Browser:
- [ x] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others:
I have 20+ properties in my schema c# entity.
It’s only when I try to POST with a user-agent string that it bugs out on me.
This is the user-agent string I’m trying to POST to Squidex:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
I guess it’s not liking some of the character combos in that string?