Skip to content

SSL operation failed with code 1 #411

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

Closed
hlorofos opened this issue May 18, 2022 · 2 comments
Closed

SSL operation failed with code 1 #411

hlorofos opened this issue May 18, 2022 · 2 comments

Comments

@hlorofos
Copy link

  • Sail Version: 1.14.5
  • Laravel Version: 9.12.2
  • PHP Version: 8.1.6
  • OS: Windows / Linux / macOS 12.3.1

Description:

When fetching data using SSL in Sail container there is an error:
SSL operation failed with code 1. OpenSSL Error messages: error:0A000126:SSL routines::unexpected eof while reading

Steps To Reproduce:

run the following command:

vendor/bin/sail php '-r file_get_contents("https://cdn.shopify.com/s/files/1/1987/5531/products/08-5_252ada17-4f0c-4d04-9584-39ed6f8a0b32.jpg?v=1503293201");'
@hlorofos
Copy link
Author

This is applicable only when the following image
image: sail-8.1/app is set in docker-compose.yml file.

@driesvints
Copy link
Member

It seems this is a bug in PHP and will be fixed in the next 8.1 release: php/php-src#8558. You'll have to wait until it's released.

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