How to: Solve "curl error 55" and "returning bool from comparison function is deprecated"
![fsmeier](https://us.v-cdn.net/6037907/uploads/avatars/2021-06-24/n2219820635921_c2eac8f16df8789eabba_original.jpg)
Heyhey,
in the last weeks there are more and more questions about an exception while doing composer commands.
It is normally about the "curl error 55" exception, for example:
curl error 55 while downloading https://repo.packagist.org/p2/spryker/cms-block-gui-extension~dev.json: Failed sending data to the peer
If there is no "curl error 55" you wound normally still have overflowing deprecation warnings whenever you install or update something with composer:
The solution is normally the following ✅
- Open the cli-container
docker/sdk cli
- Remove the falsy package with
composer remove —dev sllh/composer-versions-check
Background 🔎
This package is deprecated for some time but nowadays it creates noise and is a blocker. It will be removed from the demo-shops within the next product release. Until then you have to manually remove it.
Hope this unblocks you ✌️ Please upvote if this was helpful for you 🤝
Best, Florian
Comments
-
This does not remove the curl 55 error. I have the feeling that the curl 55 error comes from the feature packages that resolves into a dos to the package registry. If i resolve the feature packages into normal packages, it works fine.
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,035 ⚖️ - Guardians (admin)Options
@marco.kaiser you are right. It fixed it for me and for others in some cases but not for all.
Today curl 8.2.0 got released and I tested it - it seems to fix it properly.
https://github.com/curl/curl/issues/10591#issuecomment-1632024763
https://github.com/composer/composer/pull/11543
I already created a MR for alpine linux to include that version so we can update the Spryker images:
Stay tuned ⛑️3 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,035 ⚖️ - Guardians (admin)Options
Heyhey,
small update: There was a workaround released in composer (the root cause is still unknown) and we updated the php-image to use the composer version 2.6.4 . If you use the image with the tag
spryker/php:8.1
you can executedocker/sdk pull
and then it should finally work without that "curl error 55" exception!All the best,
Florian
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 63 Spryker News
- 854 Developer Corner
- 719 Spryker Development
- 80 Spryker Dev Environment
- 360 Spryker Releases
- 3 Oryx frontend framework
- 33 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 21 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 66 Spryker Safari Questions
- 50 Random