Welcome to Mediachase Community Sign in | Join | Help    
in Search   

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.
Page 1 of 4 (46 items)   1 2 3 4 Next >
Sort Posts: Previous Next
  •  Mon, Jan 07 2008, 4:12 PM 7357

    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 7362 in reply to 7357

    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 7367 in reply to 7357

    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 7369 in reply to 7367

    Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request

    No I have not.
  •  Tue, Jan 08 2008, 10:20 AM 7371 in reply to 7369

    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 7377 in reply to 7371

    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 7380 in reply to 7377

    Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request

    Anything else?
  •  Wed, Jan 09 2008, 5:47 AM 7394 in reply to 7380

    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 7396 in reply to 7394

    Re: Your request contains an invalid value for HMAC. Please check your HMAC and retry your request

    Yes IE and Firefox.
  •  Wed, Jan 09 2008, 7:00 AM 7398 in reply to 7396

    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 7399 in reply to 7398

    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 7402 in reply to 7399

    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 7403 in reply to 7402

    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 7404 in reply to 7403

    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 7405 in reply to 7404

    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 2 3 4 Next >
View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems