choose category

"[...]file could not be downloaded (HTTP/2 404)" or "No valid license found." when using composer

If you receive such error message when installing a package via composer you are authenticated with correct credentials at our system but there are no valid licenses found for the defined dependency in your account.

In that case you should double check the dependency entries in your composer.json and compare them with the examples in your personal pickup depot.

Also double check that you are authenticated with the correct credentials

If composer doesn't ask for credentials you already have saved them locally. By default composer saves them in your auth.json file in your COMPOSER_HOME folder.  

It is also possible to save the credentials in an auth.json file which lays beside your composer.json. For more details please see here.

If you are using an auth.json file the hostname and credentials are as following: 

    "http-basic": {
        "www.setasign.com": {
            "username": "[YOUR EMAIL ADDRESS OF YOUR ACCOUNT @ SETASIGN]",
            "password": "[YOUR LOGIN OR COMPOSER PASSWORD @ SETASIGN]"