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
dotnet sq sync out test command returns Schema not found error
Expected behavior
Export app settings without errors
Minimal reproduction of the problem
- Installed squidex using the following docker-compose file https://github.com/Squidex/squidex-docker/blob/master/standalone/docker-compose.yml
- Added new app (based on blog).
- Installed Squidex CLI from here https://www.nuget.org/packages/Squidex.CLI/ Version 6.0.0
- When run dotnet sq sync out command it returns the following error:
Executing the following steps
- STEP 1 of 5: Schemas
- STEP 2 of 5: App
- STEP 3 of 5: contents
- STEP 4 of 5: Rules
- STEP 5 of 5: Workflow
- STEP 1 of 5: Exporting Schemas started
Exporting ‘pages’… failed: Newtonsoft.Json.JsonException: Schema not found.
at Squidex.CLI.Commands.Implementation.Sync.JsonHelper.JsonSchemaIdConverter.ReadJson(JsonReader reader, Type objectType, String existingValue, Boolean hasExistingValue, JsonSerializer serializer) in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Sync/JsonHelper.cs:line 80
at Newtonsoft.Json.JsonConverter1.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonSerializer.Deserialize(TextReader reader, Type objectType) at Squidex.CLI.Commands.Implementation.Sync.JsonHelper.Convert[T](Object value) in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Sync/JsonHelper.cs:line 206 at Squidex.CLI.Commands.Implementation.Sync.Schemas.SchemasSynchronizer.<>c__DisplayClass6_1.<<ExportAsync>b__3>d.MoveNext() in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Sync/Schemas/SchemasSynchronizer.cs:line 49 --- End of stack trace from previous location where exception was thrown --- at Squidex.CLI.Commands.Implementation.Extension.DoSafeAsync(ILogger log, String process, Func
1 action) in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Extension.cs:line 72.
ERROR: Newtonsoft.Json.JsonException: Schema not found.
at Squidex.CLI.Commands.Implementation.Extension.HandleException(Exception ex, Action1 error) in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Extension.cs:line 125 at Squidex.CLI.Commands.Implementation.Extension.DoSafeAsync(ILogger log, String process, Func
1 action) in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Extension.cs:line 76
at Squidex.CLI.Commands.Implementation.Sync.Schemas.SchemasSynchronizer.ExportAsync(DirectoryInfo directoryInfo, JsonHelper jsonHelper, SyncOptions options, ISession session) in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Sync/Schemas/SchemasSynchronizer.cs:line 38
at Squidex.CLI.Commands.Implementation.Sync.Synchronizer.ExportAsync(String path, SyncOptions options, ISession session) in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Commands/Implementation/Sync/Synchronizer.cs:line 59
at Squidex.CLI.Commands.App.Sync.Out(OutArguments arguments) in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Commands/App_Sync.cs:line 52
at CommandDotNet.Execution.InvocationResultExtensions.GetResultCodeAsync(Object value) in CommandDotNet/Execution/InvocationResultExtensions.cs:line 16
at CommandDotNet.AppRunner.HandleException(Exception ex, IConsole console, CommandContext commandContext) in
CommandDotNet/AppRunner.cs:line 162
at CommandDotNet.AppRunner.Run(String[] args) in CommandDotNet/AppRunner.cs:line 83
at Squidex.CLI.Program.Main(String[] args) in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Program.cs:line 52
Environment
- [x ] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Version: [5]
Browser:
- [ x] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others: