Skip to content

Upload fails: Wrong parameters for T3o\Ter\Exception\UnauthorizedException

Summary

Uploading an extension to TER using helhum/ter-client fails with an error which indicates an issue on the TER side.

Steps to reproduce

Try to upload an extension using the helhum/ter-client.

What is the current bug behavior?

I get an error which can only come from TER since the mentioned class does only exist in the code of the TER:

Wrong parameters for T3o\Ter\Exception\UnauthorizedException

What is the expected correct behavior?

The extension should be uploaded successfully.

Acceptence Criterias

  • Must be fullfilled

Relevant logs and/or screenshots

$ composer global exec -v -- ter-client upload --username $TYPO3_ORG_USERNAME --password $TYPO3_ORG_PASSWORD --upload-comment "$(git tag -l --format='%(contents)' $TRAVIS_TAG)" $(composer config extra.typo3/cms.extension-key) .
Changed current directory to /home/docker/.composer
> __exec_command: ter-client 'upload' '--username' '<username>' '--password' '<password>' '--upload-comment' '<upload-comment>' '<extension-key>' '.'

In Connection.php line 52:
                                                                               
  Wrong parameters for T3o\Ter\Exception\UnauthorizedException([string $messa  
  ge [, long $code [, Throwable $previous = NULL]]])                           
                                                                               

upload [-u|--username [USERNAME]] [-p|--password [PASSWORD]] [-m|--upload-comment [UPLOAD-COMMENT]] [--wsd-url [WSD-URL]] [--] <extensionKey> <directory>

Script ter-client handling the __exec_command event returned with error code 1

Possible fixes

I checked the TER code but cannot find a possible cause in the current code base. I am not sure if this reflects the latest deployed state though.

Cross-link

Issue for helhum/ter-client: https://github.com/helhum/ter-client/issues/12