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

Sync-Unicorn : Exception calling "GetResponse" (401) Unauthorized #290

Closed
csoler46 opened this issue Jun 7, 2018 · 1 comment
Closed
Labels

Comments

@csoler46
Copy link

csoler46 commented Jun 7, 2018

Do you want to request a feature or report a bug?
bug

What is the current behavior?

Hi Community,

In one of our environements, we are having an issue when trying to syncronize our Unicorn items using a powershell script (using the modules in Unicorn.psm1).

The error that we are receiving is:

Sync-Unicorn : Exception calling "GetResponse" with "0" argument(s): "The Error remote server returned an error: (401) Unauthorized."

And in our application logs we can see this error:

WARN [Unicorn-Auth] CHAP challenge store rejected Pre Get Challenge POST Get Challenge 3f7557c254cd4f3e9ad455df390b6aba because it was unknown.

The error is thrown in (Unicorn.psm1) this point of the execution:

Write-Host "Sync-Unicorn: Executing $Verb..."

# USING THE SIGNATURE, EXECUTE UNICORN
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$result = Invoke-StreamingWebRequest -Uri $url -Mac $signature.SignatureHash -Nonce $challenge

The script had been working fine the last four weeks in all the environements. However on a specific environement this is not working (that means that the script should be ok). Unfortunately, we don't have completely under source control/scripted the installation of our virtual machines/IIS... so it could be that there are configuration differences between environements

We have verified and the SharedSecret parameter is fine (in Unicorn.Ui.config and also the one provided as a parameter in the script)

Any clue on what should we check to make it working? We had been struggling a lot of time with this issue without success. In case you need more information don't hesitate in asking!

Thanks in advance!

If the current behavior is a bug, please provide the steps to reproduce.
Execute the powershell script to syncronize items:

Sync-Unicorn -ControlPanelUrl $syncUnicornUrl -Configurations $configurations -SharedSecret $SharedSecret -DebugSecurity

What is the expected behavior?
A good syncronization
Please mention your Sitecore version and Unicorn version.
Sitecore 8.0
Unicorn 4.0.3

@omcbride
Copy link

I am experiencing the exact same issue that was described above. Did anyone ever find a solution to this?

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

No branches or pull requests

3 participants