Giter Club home page Giter Club logo

Comments (5)

ijpiantanida avatar ijpiantanida commented on July 1, 2024 2

You're totally right @roypa! Thank you so much.

I just released 1.2.0 that fixes this issue.

from talkback.

ijpiantanida avatar ijpiantanida commented on July 1, 2024

You're right, identical req should match existing tapes. meta and res are not taken into account during the lookup.
Looking at the image I don't see any reason why the tape shouldn't match.

If you're willing to test, I published a new version talkback@beta that adds a debug option.
Set it to true, and it will print a lot of debug information.
For each saved tape, it will print the reason why it doesn't match a new request.

Thank you

from talkback.

roypa avatar roypa commented on July 1, 2024

I think I found the bug that makes this happen.

The response for this tape is not considered human readable (meta.resHumanReadable=false) because header value for "content-encoding" is gzip. The request is on the other side considered human readable, which is correct.

In the source file tape.js the method static fromStore(raw, options) checks on the var raw.meta.resHumanReadable for both if tests. The first if test is used for the request and has a bug is on line 22, where it should test the raw.meta.reqHumanReadable instead.

from talkback.

roypa avatar roypa commented on July 1, 2024

Great!
Thank you so much for such a quick response.

from talkback.

hanshenrik avatar hanshenrik commented on July 1, 2024

Yes, great stuff! Thanks!

from talkback.

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.