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

Fix development server not working in Laravel 9. #194

Closed

Conversation

Esirei
Copy link
Contributor

@Esirei Esirei commented Feb 9, 2022

Laravel 9 adds a default connection timeout to the Http client, making the usage of connect_timeout in Http::withOptions calls to cause an exception when the options reach guzzle.

This is due to withOptions using array_merge_recursive to merge the options, causing existing options to be arrayed.

This PR fixes it by using the connectTimeout method added in Laravel 9.

@nhedger
Copy link

nhedger commented Feb 11, 2022

I suggest waiting on laravel/framework#40954 before deciding whether to merge this.

@innocenzi
Copy link
Owner

I also would like to wait for a fix on the Laravel side - but either way I'm off until next monday so I can't merge this yet anyway

@Esirei
Copy link
Contributor Author

Esirei commented Feb 12, 2022

A fix has been added on Laravel side, hence I'll close this PR.

@Esirei Esirei closed this Feb 12, 2022
@Esirei Esirei deleted the fix/development-server-laravel-9.x branch February 17, 2022 16:22
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.

3 participants