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

Is there a verbose mode? #972

Open
Epigene opened this issue Mar 15, 2022 · 1 comment
Open

Is there a verbose mode? #972

Epigene opened this issue Mar 15, 2022 · 1 comment

Comments

@Epigene
Copy link

Epigene commented Mar 15, 2022

I'm disabling real requests before each example in RSpec suite, and mocking requests to Sentry like so

stub_request(:any, /sentry\.io/).to_return(status: 200, body: "", headers: {})

Unfortunately, I'm still getting some errors like this:

ERROR -- Real HTTP connections are disabled. Unregistered request: POST https://o73877.ingest.sentry.io/api/5263014/envelope/ with body ...

Is there a verbose mode that would output the backtrace of the place that's making the request?

@davidrunger
Copy link

@Epigene : I was having the same issue. I ran RSpec with bin/rspec [...] --backtrace. Then, when the test failed, I saw the full backtrace that had generated the unregistered HTTP request.

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

No branches or pull requests

2 participants