Sha256: 40cf112b3e073bf04922c825e1537ee05b01e04e715b1002eda5c33555694803

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

---
http_interactions:
- request:
    method: get
    uri: https://my.datacentred.io/api/projects
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept:
      - application/vnd.datacentred.api+json; version=1
      Authorization:
      - 'Token token=:'
      Content-Type:
      - application/json
      User-Agent:
      - Faraday v0.9.2
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  response:
    status:
      code: 418
      message: "I'm a teapot"
    headers:
      Server:
      - nginx/1.10.3
      Date:
      - Fri, 15 Sep 2017 10:10:38 GMT
      Content-Type:
      - application/json; charset=utf-8
      Transfer-Encoding:
      - chunked
      Connection:
      - keep-alive
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      X-Api-Version:
      - '1'
      Www-Authenticate:
      - Token realm="DataCentred"
      Cache-Control:
      - no-cache
      X-Request-Id:
      - 471b5ece-1a5a-43f9-ad26-bdbafd34b2df
      X-Runtime:
      - '0.029291'
    body:
      encoding: UTF-8
      string: '{"errors":[{"detail":"Im a teapot."}],"links":[{"href":"https://my.datacentred.io/api","rel":"help"}]}'
    http_version: 
  recorded_at: Fri, 15 Sep 2017 10:10:38 GMT
recorded_with: VCR 2.9.3

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datacentred-1.1.1 test/vcr_cassettes/unexpected_error.yml