Error API GET Attachment (contents)
Posted: Sat Sep 15, 2018 1:08 pm
HESK Version: 2.8.2 - HESK ist aktuell
Mods für HESK Version: 2018.2.0 - Mods for HESK ist aktuell
PHP-Version: 7.2.9 (MySQLi)
MySQL-Version: 5.6.41
/hesk_settings.inc.php Vorhanden, Schreibrechte vorhanden
/attachments Vorhanden, Schreibrechte vorhanden
/cache Vorhanden, Schreibrechte vorhanden
Hosting company: campusspeicher
URL of phpinfo.php: https://ticketing.weingaertner.it/phpinfo.php
Write your message below:
I am trying to download the ticket attachments via API (/staff/tickets/:ticketId/attachments/:attachmentId). I am using the same x-auth-token as for retrieving the tickets (which is working properly).
Http-Client reports: Fought an uncaught exception. Check the logs for more information. Log ID: 34.
Log Entry 34:
REST API: ClassDefinitionResolver
Message:
Entry BusinessLogic\Attachments\AttachmentRetriever cannot be resolved: The parameter 'attachmentGateway' of BusinessLogic\Attachments\AttachmentRetriever::__construct has no value defined or guessable Full definition: Object ( class = BusinessLogic\Attachments\AttachmentRetriever scope = singleton lazy = false __construct( $attachmentGateway = #UNDEFINED# $fileReader = #UNDEFINED# $ticketGateway = #UNDEFINED# $userToTicketChecker = #UNDEFINED# ) )
Stack Trace:
#0 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/vendor/mike-koch/php-di/src/DI/Definition/Resolver/ClassDefinitionResolver.php(203): DI\Definition\Exception\DefinitionException::create(Object(DI\Definition\ClassDefinition), 'Entry BusinessL...')
#1 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/vendor/mike-koch/php-di/src/DI/Definition/Resolver/ClassDefinitionResolver.php(82): DI\Definition\Resolver\ClassDefinitionResolver->createInstance(Object(DI\Definition\ClassDefinition), Array)
#2 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/vendor/mike-koch/php-di/src/DI/Container.php(294): DI\Definition\Resolver\ClassDefinitionResolver->resolve(Object(DI\Definition\ClassDefinition), Array)
#3 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/vendor/mike-koch/php-di/src/DI/Container.php(123): DI\Container->resolveDefinition(Object(DI\Definition\ClassDefinition))
#4 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/Controllers/Attachments/StaffTicketAttachmentsController.php(21): DI\Container->get('BusinessLogic\\A...')
#5 [internal function]: Controllers\Attachments\StaffTicketAttachmentsController->get('1', '6')
#6 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/Link.php(220): call_user_func_array(Array, Array)
#7 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/Link.php(113): Link::callFunction('Controllers\\Att...', Array, 'GET', Array)
#8 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/index.php(251): Link::all(Array)
#9 {main}
Do you have any ideas? Thanks in advance for your reply.
Regards
David
Mods für HESK Version: 2018.2.0 - Mods for HESK ist aktuell
PHP-Version: 7.2.9 (MySQLi)
MySQL-Version: 5.6.41
/hesk_settings.inc.php Vorhanden, Schreibrechte vorhanden
/attachments Vorhanden, Schreibrechte vorhanden
/cache Vorhanden, Schreibrechte vorhanden
Hosting company: campusspeicher
URL of phpinfo.php: https://ticketing.weingaertner.it/phpinfo.php
Write your message below:
I am trying to download the ticket attachments via API (/staff/tickets/:ticketId/attachments/:attachmentId). I am using the same x-auth-token as for retrieving the tickets (which is working properly).
Http-Client reports: Fought an uncaught exception. Check the logs for more information. Log ID: 34.
Log Entry 34:
REST API: ClassDefinitionResolver
Message:
Entry BusinessLogic\Attachments\AttachmentRetriever cannot be resolved: The parameter 'attachmentGateway' of BusinessLogic\Attachments\AttachmentRetriever::__construct has no value defined or guessable Full definition: Object ( class = BusinessLogic\Attachments\AttachmentRetriever scope = singleton lazy = false __construct( $attachmentGateway = #UNDEFINED# $fileReader = #UNDEFINED# $ticketGateway = #UNDEFINED# $userToTicketChecker = #UNDEFINED# ) )
Stack Trace:
#0 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/vendor/mike-koch/php-di/src/DI/Definition/Resolver/ClassDefinitionResolver.php(203): DI\Definition\Exception\DefinitionException::create(Object(DI\Definition\ClassDefinition), 'Entry BusinessL...')
#1 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/vendor/mike-koch/php-di/src/DI/Definition/Resolver/ClassDefinitionResolver.php(82): DI\Definition\Resolver\ClassDefinitionResolver->createInstance(Object(DI\Definition\ClassDefinition), Array)
#2 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/vendor/mike-koch/php-di/src/DI/Container.php(294): DI\Definition\Resolver\ClassDefinitionResolver->resolve(Object(DI\Definition\ClassDefinition), Array)
#3 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/vendor/mike-koch/php-di/src/DI/Container.php(123): DI\Container->resolveDefinition(Object(DI\Definition\ClassDefinition))
#4 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/Controllers/Attachments/StaffTicketAttachmentsController.php(21): DI\Container->get('BusinessLogic\\A...')
#5 [internal function]: Controllers\Attachments\StaffTicketAttachmentsController->get('1', '6')
#6 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/Link.php(220): call_user_func_array(Array, Array)
#7 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/Link.php(113): Link::callFunction('Controllers\\Att...', Array, 'GET', Array)
#8 /var/www/vhosts/h169235.server53.campusspeicher.de/ticketing.weingaertner.it/hesk/api/index.php(251): Link::all(Array)
#9 {main}
Do you have any ideas? Thanks in advance for your reply.
Regards
David