For one specific questionnaire (bedb5e47-6f4a-47d9-a2af-b720b981d9ff rev.9432), importing into HQ fails. The import will run for some two minutes and then fail after reaching and stalling at 47% progress. This only happens with that specific questionnaire, other questionnaires can be imported just fine. We tried several times and tried to import other questionnaires in between to rule out temporary issues with the connection to designer. We have tried both, before and after updating to the latest version (23.04 rev.34292, from 22.12). The logs contain the following error:
hq_1 | [13:37:08 INF] Headquarters Failed to import questionnaire from designer. RestException
hq_1 | WB.Core.Infrastructure.HttpServices.HttpClient.RestException: Request canceled by user
hq_1 | ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
hq_1 | ---> System.IO.IOException: Unable to read data from the transport connection: Operation canceled.
hq_1 | ---> System.Net.Sockets.SocketException (125): Operation canceled
hq_1 | --- End of inner exception stack trace ---
hq_1 | at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
hq_1 | at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
hq_1 | at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken)
hq_1 | at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
hq_1 | at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory`1 buffer, CancellationToken cancellationToken)
hq_1 | at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
hq_1 | at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
hq_1 | --- End of inner exception stack trace ---
hq_1 | at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
hq_1 | at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
hq_1 | at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
hq_1 | at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
hq_1 | at WB.UI.Headquarters.Services.Impl.DesignerRestServiceHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /src/UI/WB.UI.Headquarters.Core/Services/Impl/Designer/DesignerRestServiceHandler.cs:line 82
hq_1 | --- End of inner exception stack trace ---
hq_1 | at WB.UI.Headquarters.Services.Impl.DesignerRestServiceHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /src/UI/WB.UI.Headquarters.Core/Services/Impl/Designer/DesignerRestServiceHandler.cs:line 82
hq_1 | at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
hq_1 | at Refit.RequestBuilderImplementation.<>c__DisplayClass14_0`2.<<BuildCancellableTaskFuncForMethod>b__0>d.MoveNext() in /_/Refit/RequestBuilderImplementation.cs:line 313
hq_1 | --- End of stack trace from previous location ---
hq_1 | at WB.Core.BoundedContexts.Headquarters.Implementation.Services.QuestionnaireBackupImportStep.DownloadFromDesignerAsync(IProgress`1 progress) in /src/Core/BoundedContexts/Headquarters/WB.Core.BoundedContexts.Headquarters/Implementation/Services/QuestionnaireImport/QuestionnaireBackupImportStep.cs:line 56
hq_1 | at WB.Core.BoundedContexts.Headquarters.Implementation.Services.QuestionnaireImportService.<>c__DisplayClass14_1.<<ImportImpl>b__9>d.MoveNext() in /src/Core/BoundedContexts/Headquarters/WB.Core.BoundedContexts.Headquarters/Implementation/Services/QuestionnaireImport/QuestionnaireImportService.cs:line 244
hq_1 | --- End of stack trace from previous location ---
hq_1 | at WB.Core.BoundedContexts.Headquarters.Implementation.Services.QuestionnaireImportService.ImportImpl(RestCredentials credentials, IServiceLocator serviceLocator, Guid userId, String userName, Guid questionnaireId, QuestionnaireImportResult questionnaireImportResult, String name, Boolean isCensusMode, String comment, String requestUrl, Boolean shouldMigrateAssignments, QuestionnaireIdentity migrateFrom, Boolean includePdf) in /src/Core/BoundedContexts/Headquarters/WB.Core.BoundedContexts.Headquarters/Implementation/Services/QuestionnaireImport/QuestionnaireImportService.cs:line 357
Just to avoid confusion: we did not actively cancel the request, despite the message in line 2.
The time stamp is in UTC, the corresponding date was yesterday, 10 May 2023, our IP address is 81.169.180.143, if you have access to further logs, e.g. from designer. This happens the same on other installations, though.