title: Quickbook online service gives 500 internal server?
body: <p>I am trying to call the data service but got 500 error every time. When I tested using "Try it" button in the API Explorer, it worked. The response came back fine. But in my app, it failed to connect. The same OAuth header worked for the API but not inside the app.</p>
  
  <pre><code>String urlReq = "https://qbo.sbfinance.intuit.com/resource/companymetadata/v2/" + intuitRealmID; //static baseURL
  Uri uriToIntuit = new Uri(urlReq);
  HttpWebRequest intuitReq = (HttpWebRequest)WebRequest.Create(uriToIntuit);
  intuitReq.Method = "GET";
  intuitReq.ContentType = "text/xml";
  intuitReq.ContentLength = 0;
  intuitReq.Accept = "text/xml";
  OAuthUtils.signRequest(intuitReq, ap.ConsumerKey, ap.ConsumerSecret, rToken.Token,rToken.TokenSecret);
  
  HttpWebResponse httpResponse = (HttpWebResponse)(intuitReq.GetResponse());
  </code></pre>
  
  <p>...</p>
  
  <pre><code>public static void signRequest(HttpWebRequest request, string consumerKey, string consumerSecret, string token, string tokenSecret)
  {
      string normalizedUrl;
      string normalizedRequestParameters;
  
      string timeStamp = OAuthUtils.GenerateTimeStamp();
      string nonce = OAuthUtils.GenerateNonce();
  
      OAuthConsumerBase consumerBase = new OAuthConsumerBase();
      string signature = consumerBase.GenerateSignature(
          request.RequestUri,
          null,           // callback,
          null,           // verifier,
          consumerKey,
          consumerSecret,
          token,          // token,
          null,           // type,
          tokenSecret,    // tokenSecret,
          request.Method,
          timeStamp,
          nonce,
          null,           // status,
          out normalizedUrl,
          out normalizedRequestParameters
      );
  
      string authHeader = OAuthRequest.GenerateAuthHeader(
              nonce,
              timeStamp,
              signature,
              token,
              consumerKey,
              null,           // verifier
              null,           // callback
              "HMAC-SHA1",    // signature type
              "1.0"           // version
          );
  
      request.Headers[HttpRequestHeader.Authorization] = authHeader;
  }
  </code></pre>
  
  <p>I have tried the static baseURL which also gives 500 error.
  <a href="https://qbo.intuit.com/qbo1/rest/user/v2/" rel="nofollow">https://qbo.intuit.com/qbo1/rest/user/v2/</a></p>
  
  <pre><code>OAuth oauth_version=\"1.0\", oauth_nonce=\"c830ffa8338b4d6fa0b3e8d03f144642\", oauth_timestamp=\"1374015013\", oauth_consumer_key=\"qyprdpwcmwYdE7nfBkG4Mb0t65ufH8\", oauth_token=\"qyprdTnNWcIBorQk9L93o8ERKPZI3ELoBUHBrULzvsxPsPMU\", oauth_signature_method=\"HMAC-SHA1\", oauth_signature=\"Ws0WpQmV9aAzaFHw%2B6wMC5aidBk%3D\""       string
  </code></pre>