Comments (2)
@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.
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)
- Error attempying to Generate Code HOT 11
- OAuth2: The scope in case of `Password Credentials` grant type
- Crashing when switching from GraphQL variables back to request body HOT 2
- OAuth 2.0 - Client credentials always returning "'undefined' is not valid JSON" HOT 1
- crashing when generating code from request HOT 1
- Nested vars support? HOT 2
- Initialisation Issue HOT 2
- import collection from postman lose name HOT 1
- TLS on APT repos
- [Postman] Importing request with "formdata" of type "file" fails silently
- [Feature] Add command bru.rmVar(varType, key) and/or bru.rmEnvVar(key)
- [Feature] Tabs : display more characters for request's name
- add location to error messages
- [Feature] Menu bar to sort and filter results from CSV file
- [Issue] Whitelisting non-existing modules crashes the CLI
- [Issue] Resetting the runner teleports you to collection's root HOT 2
- [Feature] Tooltip on long variables in arrays (vars, env) HOT 1
- [Feature]: Bulk import for multiple environment imports
- Assertion Fails on JSON field with invalid character (hyphen) HOT 3
- Making new scripts should not require Golden membership HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bruno.