Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kamsar.WebConsole.WebConsole constructor issue #408

Open
SC-MasoudAhmadi opened this issue Mar 24, 2021 · 0 comments
Open

Kamsar.WebConsole.WebConsole constructor issue #408

SC-MasoudAhmadi opened this issue Mar 24, 2021 · 0 comments

Comments

@SC-MasoudAhmadi
Copy link

Do you want to request a feature or report a bug?
Bug
What is the current behavior?

the following part of the Unicorn/doc/PowerShell Remote Scripting/Unicorn.psm1 throws exception and kills IIS
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$result = Invoke-StreamingWebRequest -Uri $url -Mac $signature.SignatureHash -Nonce $challenge -RequestVerb $Verb

This is what I see in the log
10096 2021:03:24 14:59:05 ERROR Unhandled exception detected. The ASP.NET worker process will be terminated.
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: System.Web
at System.Web.HttpWriter.BufferData(Byte[] data, Int32 offset, Int32 size, Boolean needToCopyData)
at System.Web.HttpWriter.FlushCharBuffer(Boolean flushEncoder)
at System.Web.HttpWriter.GetBufferedLength()
at System.Web.HttpResponse.UpdateNativeResponse(Boolean sendHeaders)
at System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async)
at System.Web.HttpWriter.Write(String s)
at System.Web.HttpResponseWrapper.Write(String s)
at Kamsar.WebConsole.TextWebConsole.Write(String statusMessage, MessageType type, Object[] formatParameters)
at Kamsar.WebConsole.WebConsole.<.ctor>b__8_0(Object arg)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireNextTimers()

The Kamsar.WebConsole.WebConsole constructor is calling
this._idleTimer = new Timer((TimerCallback) (arg => this.WriteLine(".")), (object) null, 30000, -1);

with null as formatParameters and the Write method is calling formatParameters .Length

If the current behavior is a bug, please provide the steps to reproduce.
Call Unicorn/doc/PowerShell Remote Scripting/Unicorn.psm1 with some parameters and observe the output.

What is the expected behavior?
Unicorn sync should start.

Please mention your Sitecore version and Unicorn version.
Sitecore XP0 10.1 and Unicorn 4.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant