fixtures/vcr_cassettes/Harvesting_Client/authentication_when_client_is_not_authenticated_raises_a_Harvesting_AuthenticationError.yml
---
http_interactions:
- request:
method: get
uri: https://api.harvestapp.com/v2/users/me
body:
encoding: UTF-8
string: ''
headers:
User-Agent:
- Harvesting Ruby Gem
Authorization:
- Bearer foo
Harvest-Account-Id:
- bar
Connection:
- close
Host:
- api.harvestapp.com
response:
status:
code: 401
message: Unauthorized
headers:
Server:
- nginx
Date:
- Fri, 25 Jan 2019 18:32:03 GMT
Content-Type:
- application/json
Content-Length:
- '134'
Connection:
- close
Status:
- 401 Unauthorized
Www-Authenticate:
- Bearer realm="Rack::OAuth2 Protected Resources", error="invalid_token", error_description="The
access token provided is expired, revoked, malformed or invalid for other
reasons."
Cache-Control:
- no-cache
X-Request-Id:
- de3649500e5cbf9bfc035b2695be0ccf
X-Runtime:
- '0.049054'
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
body:
encoding: ASCII-8BIT
string: '{"error":"invalid_token","error_description":"The access token provided
is expired, revoked, malformed or invalid for other reasons."}'
http_version:
recorded_at: Fri, 25 Jan 2019 18:32:03 GMT
recorded_with: VCR 4.0.0