Code Monkey home page Code Monkey logo

Comments (6)

parroty avatar parroty commented on July 4, 2024

deleting the 'test/fixture/vcr_cassettes/geo_go_to_service.json' and retry the test still show the error log?

from exvcr.

mrkaspa avatar mrkaspa commented on July 4, 2024

yes but this happens always, so if I record the calls is because I don't want to re-record them again everytime

from exvcr.

parroty avatar parroty commented on July 4, 2024

Thanks for the info. Is there any way that I can see the recorded json and test code?

One possibility is certain parameter (of matching target) is changing on every request and failing to match.

Is there any options specified around the following?
https://github.com/parroty/exvcr#recording-vcr-cassettes

from exvcr.

mrkaspa avatar mrkaspa commented on July 4, 2024

@parroty this is the cassete

[
  {
    "request": {
      "body": "",
      "headers": [],
      "method": "get",
      "options": [],
      "request_body": "",
      "url": "https://maps.googleapis.com/maps/api/distancematrix/json?destinations=cll+140+21+39%2C+Bogot%C3%A1%2C+Cundinamarca%2C+Colombia%7C%2C+&key=AIzaSyDwPQV9pRrMDK1AQKzzzR7xPbLaCgxOFrE&origins=%7C4.7238125%2C+-74.0489187"
    },
    "response": {
      "body": "{\n   \"destination_addresses\" : [ \"Cl. 140 #21-39, Bogotá, Colombia\", \"\" ],\n   \"origin_addresses\" : [ \"Cl. 140 #19A-36, Bogotá, Colombia\" ],\n   \"rows\" : [\n      {\n         \"elements\" : [\n            {\n               \"distance\" : {\n                  \"text\" : \"1 m\",\n                  \"value\" : 0\n               },\n               \"duration\" : {\n                  \"text\" : \"1 min\",\n                  \"value\" : 0\n               },\n               \"status\" : \"OK\"\n            },\n            {\n               \"status\" : \"NOT_FOUND\"\n            }\n         ]\n      }\n   ],\n   \"status\" : \"OK\"\n}\n",
      "headers": {
        "Content-Type": "application/json; charset=UTF-8",
        "Date": "Mon, 23 Jan 2017 21:41:20 GMT",
        "Expires": "Tue, 24 Jan 2017 21:41:20 GMT",
        "Cache-Control": "public, max-age=86400",
        "Server": "mafe",
        "X-XSS-Protection": "1; mode=block",
        "X-Frame-Options": "SAMEORIGIN",
        "Alt-Svc": "quic=\":443\"; ma=2592000; v=\"35,34\"",
        "Accept-Ranges": "none",
        "Vary": "Accept-Language,Accept-Encoding",
        "Transfer-Encoding": "chunked"
      },
      "status_code": 200,
      "type": "ok"
    }
  }
]

from exvcr.

parroty avatar parroty commented on July 4, 2024

Thanks. It seems the cassette is having different endpoint response (maps.google.com) from the original one (hooks.slack.com).

Can you post the test code? (Any chance that different tests use the same name of cassette?)

Request: [:post, "https://hooks.slack.com/services/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", [], {:form, [payload: "{\"text\":\"La tarea con ID 39310 esta en el estado arrived\\n\",\"channel\":\"#test_services\"}"]}, []]
 "method": "get",
...
url": "https://maps.googleapis.com/maps/api/distancematrix/json?destinations=cll+140+21+39%2C+Bogot%C3%A1%2C+Cundinamarca%2C+Colombia%7C%2C+&key=AIzaSyDwPQV9pRrMDK1AQKzzzR7xPbLaCgxOFrE&origins=%7C4.7238125%2C+-74.0489187"

from exvcr.

mrkaspa avatar mrkaspa commented on July 4, 2024

Yes I could solve it, it looks like there is a request going out and it was not being recorded

from exvcr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.