|
|
|
|
Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
Last post Fri, Sep 25 2009, 9:26 AM by truthbrother. 45 replies.
-
Mon, Jan 07 2008, 4:12 PM |
-
cblaze22
-
-
-
Joined on 08-19-2007
-
-
Posts 237
-
-
|
Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
I am getting this error after adding something to my cart. I then am redirected to my cart page where you can sign in if you arent yet. When you try to sign in I get this error below.
Code: Mediachase.eCF.BusFacade.WSExceptionType.InvalidHMAC
Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
Please let me know what is happening as, it just stays on the same page, takes my item out of my cart, and doesnt do anything else. I can log in though after that fine. It is just that time on the cart page after adding something to the cart and logging in on the cart page that causes this error. It might be quite a bug so please look into this.
Here is the code I have for logging in on the cart page.
protected void OnLoggingIn(object sender, LoginCancelEventArgs e) { if (!String.IsNullOrEmpty(CustomerLogin)) ClientContext.Context["LoginOnBehafOfCustomer"] = CustomerLogin; else if (ClientContext.Context["LoginOnBehafOfCustomer"] != null) ClientContext.Context["LoginOnBehafOfCustomer"] = null; } protected void OnLoggedIn(object sender, EventArgs e) { if (!String.IsNullOrEmpty(CustomerLogin)) CommonHelper.CreateAuthenticationCookie(CustomerLogin, Login1.RememberMeSet); else CommonHelper.CreateAuthenticationCookie(Login1.UserName, Login1.RememberMeSet);
if (!ClientCustomer.AssociateLatestOrder()) DisplayErrorMessage("Could not associate customer with the order");
this.Page.Response.Redirect("~/Checkout", true); }
|
|
-
Tue, Jan 08 2008, 7:13 AM |
-
cblaze22
-
-
-
Joined on 08-19-2007
-
-
Posts 237
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
Anyone? This is a pretty big bug?
|
|
-
Tue, Jan 08 2008, 9:48 AM |
-
Gary L Cox Jr
-
-
-
Joined on 03-22-2006
-
Los Angeles
-
Posts 387
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
Did you recently change your Encryption PrivateKey node in the web.config?
Gary L Cox Jr
|
|
-
Tue, Jan 08 2008, 10:01 AM |
-
cblaze22
-
-
-
Joined on 08-19-2007
-
-
Posts 237
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
|
-
Tue, Jan 08 2008, 10:20 AM |
-
Gary L Cox Jr
-
-
-
Joined on 03-22-2006
-
Los Angeles
-
Posts 387
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
Can you try clearing your cookies and log back into your site and attempt to access the cart. Let me know if you still experience this.
Thanks,
Gary L Cox Jr
|
|
-
Tue, Jan 08 2008, 11:17 AM |
-
cblaze22
-
-
-
Joined on 08-19-2007
-
-
Posts 237
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
Still happening after clearing cookies, adding something to cart, logging in, erasing item from cart and didnt log in.
After that, I would add something to cart, log in, logged in fine.
Repeat top over and over, same sequence.
|
|
-
Tue, Jan 08 2008, 2:01 PM |
-
cblaze22
-
-
-
Joined on 08-19-2007
-
-
Posts 237
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
|
-
Wed, Jan 09 2008, 5:47 AM |
-
Nadya
-
-
-
Joined on 06-29-2005
-
-
Posts 476
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
Are you experiencing the issue in various browsers?
|
|
-
Wed, Jan 09 2008, 6:20 AM |
-
cblaze22
-
-
-
Joined on 08-19-2007
-
-
Posts 237
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
|
-
Wed, Jan 09 2008, 7:00 AM |
-
Nadya
-
-
-
Joined on 06-29-2005
-
-
Posts 476
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
Have you tried to debug the project?
|
|
-
Wed, Jan 09 2008, 8:12 AM |
-
cblaze22
-
-
-
Joined on 08-19-2007
-
-
Posts 237
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
Yes what do you want to know. I get this error after a request to your server and the return value gives me the HMAC error. I narrowed it down to this in the bold that causes the error. Funny it happens every other time.
public static Cart GetCart() { if (ClientContext.Context.Session.IsInitialized) { CartGet cartGet = new CartGet(); CartGetRequest request = new CartGetRequest(); request.CurrencyCode = ClientContext.Context.CurrentCurrencyCode;
cartGet.SubscriptionId = ClientConfig.SubscriptionId;
Session session = ClientContext.Context.Session.BaseSession; if (ClientContext.Context.Session.IsInitialized) request.Session = session;
cartGet.Request = new CartGetRequest[] { request };
// Get the response CartGetResponse response = null;
try { response = CartManager.CartGet(cartGet); } catch (Exception ex) { throw new ClientException(ClientExceptionType.DataStoreError, ex); }
// Check for errors ClientContext.CheckForErrors(response.OperationRequest.Errors);
if (response == null) throw new ClientException(ClientExceptionType.DataStoreError, "Server Error - no response recieved!");
Cart[] cartArray = response.Cart;
// Check for errors, stop at first error if (cartArray == null) throw new ClientException(ClientExceptionType.DataStoreError, "Server Error - empty response!");
// Examine response for errors ClientContext.CheckForErrors(cartArray[0].Request.Errors);
return cartArray[0]; }
return null; }
|
|
-
Wed, Jan 09 2008, 9:54 AM |
-
Gary L Cox Jr
-
-
-
Joined on 03-22-2006
-
Los Angeles
-
Posts 387
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
So far we have been unable to replicate your issue. Can you email support@mediachase.com your web.config file so we can see if something is missing.
Thanks,
Gary L Cox Jr
|
|
-
Wed, Jan 09 2008, 10:03 AM |
-
cblaze22
-
-
-
Joined on 08-19-2007
-
-
Posts 237
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
I emailed it please get back to me.
|
|
-
Wed, Jan 09 2008, 10:30 AM |
-
Gary L Cox Jr
-
-
-
Joined on 03-22-2006
-
Los Angeles
-
Posts 387
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
Thanks, I have not received it yet but as soon as it comes in I will get right on it.
Thanks,
Gary L Cox Jr
|
|
-
Wed, Jan 09 2008, 10:35 AM |
-
cblaze22
-
-
-
Joined on 08-19-2007
-
-
Posts 237
-
-
|
Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request
I sent it thirty minutes ago with an attachment hopefully it does not get into spam.
|
|
Page 1 of 4 (46 items)
1
|
|
|
|