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

Suppress HTTP error exceptions #234

Closed
wants to merge 2 commits into from
Closed

Suppress HTTP error exceptions #234

wants to merge 2 commits into from

Conversation

ryancco
Copy link

@ryancco ryancco commented Jun 3, 2019

Unless explicitly overridden, the default behavior of the HTTP client should be to suppress HTTP errors. While it would make sense to make this not only default, but forced, there still may be use cases in development environments and debugging scenarios that may make sense to allow this to be a configurable option.

directly fixes #197 and issues surrounding unusability due to erroneous, malicious, expired subscriptions.

Unless explicitly overridden, the default behavior of the http client should be to suppress http errors. While it would make sense to make this not only default, but forced, there still may be use in development environments and debugging scenarios that may make sense to allow this to be a configurable option
Copy link
Member

@Minishlink Minishlink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do that you won't know if the endpoint expired, don't you?

@@ -44,7 +44,7 @@ public static function setUpBeforeClass()
*/
protected function setUp()
{
if (!(getenv('TRAVIS') || getenv('CI'))) {
if (getenv('TRAVIS') || getenv('CI')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh? No please don't skip the integration tests :o

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one threw me off, maybe I'm misunderstanding though; the call to $this->markTestSkipped specifies "This test does not run on Travis". The conditional logic here shows that unless both getenv('TRAVIS') as well as getenv('CI') return false, skip the test. So I think, unless I'm just confusing myself at this point, I've just simplified the existing logic to the same effect? 🤔

@ryancco ryancco closed this Jun 25, 2019
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

Successfully merging this pull request may close these issues.

Problem on sending bulk pushes for real world apps
2 participants