[SOLVED] --deleteAfterDownload option fails for sq backup create

I have…

  • 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)
  • Bug report
  • Performance issue
  • Documentation issue or request

Current behavior

When I run sq backup create --deleteAfterDownload --timeout 1 backup.zip, I get the following output (with an error message):

# sq backup create --deleteAfterDownload --timeout 1 backup.zip
Backup started, waiting for completion...
Backup completed. Downloading...
Removing backup from app
ERROR: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Http.HttpClient'.
   at System.Net.Http.HttpClient.CheckRequestBeforeSend(HttpRequestMessage request)
   at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
   at Squidex.ClientLibrary.BackupsClient.DeleteBackupAsync(String id, CancellationToken cancellationToken) in /_/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Generated.cs:line 14174
   at Squidex.CLI.Commands.App.Backup.Create(CreateArguments arguments) in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Commands/App_Backup.cs:line 79
   at CommandDotNet.Execution.InvocationResultExtensions.GetResultCodeAsync(Object value) in CommandDotNet/Execution/InvocationResultExtensions.cs:line 15
   at CommandDotNet.AppRunner.OnRunCompleted(CommandContext context, ExecutionDelegate next) in CommandDotNet/AppRunner.cs:line 161
   at CommandDotNet.AppRunner.HandleException(Exception ex, CommandContext commandContext) in CommandDotNet/AppRunner.cs:line 191
   at CommandDotNet.AppRunner.Run(String[] args) in CommandDotNet/AppRunner.cs:line 101
   at Squidex.CLI.Program.Main(String[] args) in /home/runner/work/squidex-samples/squidex-samples/cli/Squidex.CLI/Squidex.CLI/Program.cs:line 59

Expected behavior

Backup should be deleted and CLI should end without any error.

Minimal reproduction of the problem

Run sq backup create --deleteAfterDownload backup.zip with cli v13.0 and squidex v7.13.0

Environment

  • Self hosted with docker
  • Self hosted with IIS
  • Self hosted with other version
  • Cloud version

Version: 7.13.0 and cli-v13.0

Other

I don’t now yet if it helps to upgrade to 7.14.0

This topic was automatically closed after 44 hours. New replies are no longer allowed.