Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in "Tests": Something Went Wrong - stops the user from doing anything due to code error #7848

Closed
vdespa opened this issue Dec 27, 2019 · 11 comments

Comments

@vdespa
Copy link

vdespa commented Dec 27, 2019

Describe the bug
While using the editor, it seems that the error Something Went Wrong prevents the user from doing anything.

To Reproduce
Steps to reproduce the behavior:

  1. Open a request, go to Tests
  2. Paste the following code:

pm.response.to.have.jsonSchema(schema:Objec);

  1. Try deleting the letter "c" from schema:Objec
  2. See error

Expected behavior
No error

Screenshots
Screenshot 2019-12-27 at 10 12 54

App information (please complete the following information):

  • App Type Native App
  • Postman Version 7.14.0 (7.14.0)
  • OS: macOS

Additional context
Add any other context about the problem here.

@shamasis
Copy link
Member

This looks serious. We are on it.

@ritwijsinha
Copy link

ritwijsinha commented Jan 27, 2020

Hey @vdespa,

I'm unable to reproduce this bug. This is what happens when I follow your steps (tried deleting both the "c" characters in "schema:Objec", also tried using fn + delete):

Github7848

Are you reliably able to reproduce this? If yes, it would be awesome if you could help us reproduce this!

Cheers.

@coditva
Copy link
Member

coditva commented Jan 28, 2020

@vdespa Do you have a collection variable with value as an object? And do you see any logs in the Chrome Developer Tools?

This might be similar to #7759

@vdespa
Copy link
Author

vdespa commented Feb 3, 2020

I have reported this back in December. I can't reproduce this anymore in Version 7.16.0.

@vdespa
Copy link
Author

vdespa commented Feb 7, 2020

I recently encountered this issue again.

ezgif-2-1b78d8e09c9d

As you can see, the request is not part of a collection. But I did manage to catch an error in the DevTools.

Screenshot 2020-02-07 at 09 27 21

"xml.js:22 Error: Minified React error #31; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7Badditionalneeds%2C%20bookingdates%2C%20depositpaid%2C%20firstname%2C%20lastname%2C%20totalprice%7D&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings."

@coditva
Copy link
Member

coditva commented Feb 10, 2020

I think I got it. @vdespa Can you confirm that you have a global variable with key of type object?

@vdespa
Copy link
Author

vdespa commented Feb 11, 2020

Yes, I do have one of type object @coditva

@vdespa
Copy link
Author

vdespa commented Feb 26, 2020

@arlemi - still crashes in Version 7.19.1

@arlemi
Copy link
Collaborator

arlemi commented Feb 27, 2020

@vdespa Yep my bad, we fixed an issue that was similar but not exactly the same. Will keep updating when we pick it up. :)

@coditva
Copy link
Member

coditva commented Mar 9, 2020

@vdespa Hi! This is now fixed in Postman v7.20.0! 🎉

@coditva coditva closed this as completed Mar 9, 2020
Runtime Triage and Development automation moved this from Pending triage to Ready Mar 9, 2020
@vdespa
Copy link
Author

vdespa commented Mar 15, 2020

Great to see this fixed! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

6 participants