Note that there are some explanatory texts on larger screens.

plurals
  1. POOAuth signature issue
    primarykey
    data
    text
    <p>I'm trying to use python with the rauth library to connect to the QBO api on the intuit partner platform, and I've mostly gotten it to work correctly. However, I'm frequently getting errors when sending requests:</p> <pre><code>Exception authenticating OAuth; errorCode=003200; statusCode=401 </code></pre> <p>This message is also located in the response header when it fails:</p> <pre><code>WWW-Authenticate: OAuth oauth_problem="signature_invalid" </code></pre> <p>The error code indicates that the request isn't being signed properly, but I'm using a standard oauth library to automatically sign the data, and it works about half of the time. my connection code is as follows:</p> <pre><code>if method is 'post': headers = {} if action in ['create', 'update', 'delete']: headers['Content-Type'] = 'application/xml' r = self.session.post(url, data=data, headers=headers, params=params, header_auth=True) else: r = self.session.get(url, params=params, header_auth=True) </code></pre> <p>Where self.session is an rauth.OAuth1Session.</p> <p>An example generated request is:</p> <pre><code>GET /resource/customer/v2/682571780/1 HTTP/1.1 Host: qbo.sbfinance.intuit.com Accept: */* Content-Length: 0 Accept-Encoding: gzip, deflate, compress authorization: OAuth realm="",oauth_nonce="d577f23920c96f8ee79eff6588c83c9ebf65cf20",oauth_timestamp="1366147949",oauth_consumer_key="qyprdCFOHBypPTK8XX0g8N4bZ8ceVA",oauth_signature_method="HMAC-SHA1",oauth_version="1.0",oauth_token="qyprdp9p7diRBIt11In225OOGRzcgl9o4DsQRJduHJFP09gY",oauth_signature="w5V3u2ATnj/rDc9vFD7inr8MO6I%3D" User-Agent: python-requests/1.1.0 CPython/2.7.3 Linux/3.5.0-17-generic </code></pre> <p>Is this an issue with the rauth library? Am I leaving out a parameter that would make it more stable?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload