GithubHelp home page GithubHelp logo

Comments (2)

helloanoop avatar helloanoop commented on June 18, 2024

@dcoomber
We should throw an error when a script is trying to access an element inside the response which is not present right ?
If we don't catch these errors, then the further steps around retrieve the booking would fail.

I may be missing your intent/reasoning here. Can you elaborate on why you think that the script should not throw error in case of an out-of-bounds or invalid-index access ?

from bruno.

dcoomber avatar dcoomber commented on June 18, 2024

I'm looking at this from the perspective of winning over users by making sure that the behaviour is somewhat similar to their experience in Postman. Postman does not show an error to the user for the same condition.

That said, showing the exception to the user is less of an issue than the content of the toast message - not all of our users will be technical.

It took me a moment to figure out that the issue was not in the HTTP request, but rather in processing of the response in the post response script. I think that the user experience for less technical users could be improved by either not showing the exception or by using user-friendly text.

from bruno.

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.