Calling Developers!
We are reenergizing our code contribution process! Learn More

How to: Solve "curl error 55" and "returning bool from comparison function is deprecated"

Options
fsmeier
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,018 ⚖️ - Guardians (admin)
edited July 2023 in Spryker Development

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 ✅

  1. Open the cli-container docker/sdk cli
  2. 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

Tagged:

Comments

  • marco.kaiser
    marco.kaiser Spryker Solution Partner Posts: 13 ✨ - Novice
    Options

    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.

    @fsmeier

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,018 ⚖️ - 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:
    https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/48961

    Stay tuned ⛑️

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,018 ⚖️ - 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 execute docker/sdk pull and then it should finally work without that "curl error 55" exception!

    All the best,

    Florian