Error on gitlab time sync
Sentry Issue: CATTR-CORE-86
Gitlab\Exception\RuntimeException: 404 Not found
File "/Modules/GitlabIntegration/Helpers/GitlabApi.php", line 96, in Modules\GitlabIntegration\Helpers\GitlabApi::sendUserTime
return $this->client->issues->addSpentTime($projectId, $issue_iid, $duration);
File "/Modules/GitlabIntegration/Services/TimeSynchronizer.php", line 60, in Modules\GitlabIntegration\Services\TimeSynchronizer::synchronize
$response = $this->api->sendUserTime($glProjectId, $glIssueIid, $durations[$taskId]['humanDuration']);
File "/Modules/GitlabIntegration/Console/SynchronizeTime.php", line 45, in Modules\GitlabIntegration\Console\SynchronizeTime::handle
$this->timeSynchronizer->synchronize();
File "/artisan", line 37
new Symfony\Component\Console\Output\ConsoleOutput
...
(25 additional frame(s) were not displayed)
[2021-05-18 08:30:51] production.ERROR: 404 Not found {"exception":"[object] (Gitlab\\Exception\\RuntimeException(code: 404): 404 Not found at /opt/cattr/cattr/backend/vendor/m4tthumphrey/php-gitlab-api/lib/Gitlab/HttpClient/Plugin/GitlabExceptionThrower.php:72)
[stacktrace]
#0 /opt/cattr/cattr/backend/vendor/m4tthumphrey/php-gitlab-api/lib/Gitlab/HttpClient/Plugin/GitlabExceptionThrower.php(47): Gitlab\\HttpClient\\Plugin\\GitlabExceptionThrower::createException()
#1 /opt/cattr/cattr/backend/vendor/php-http/httplug/src/Promise/HttpFulfilledPromise.php(31): Gitlab\\HttpClient\\Plugin\\GitlabExceptionThrower->Gitlab\\HttpClient\\Plugin\\{closure}()
#2 /opt/cattr/cattr/backend/vendor/m4tthumphrey/php-gitlab-api/lib/Gitlab/HttpClient/Plugin/GitlabExceptionThrower.php(51): Http\\Client\\Promise\\HttpFulfilledPromise->then()
#3 /opt/cattr/cattr/backend/vendor/php-http/client-common/src/Plugin/VersionBridgePlugin.php(22): Gitlab\\HttpClient\\Plugin\\GitlabExceptionThrower->doHandleRequest()
#4 /opt/cattr/cattr/backend/vendor/php-http/client-common/src/PluginChain.php(48): Gitlab\\HttpClient\\Plugin\\GitlabExceptionThrower->handleRequest()
#5 /opt/cattr/cattr/backend/vendor/php-http/client-common/src/PluginChain.php(63): Http\\Client\\Common\\PluginChain->Http\\Client\\Common\\{closure}()
#6 /opt/cattr/cattr/backend/vendor/php-http/client-common/src/PluginClient.php(90): Http\\Client\\Common\\PluginChain->__invoke()
#7 /opt/cattr/cattr/backend/vendor/php-http/client-common/src/HttpMethodsClient.php(148): Http\\Client\\Common\\PluginClient->sendRequest()
#8 /opt/cattr/cattr/backend/vendor/php-http/client-common/src/HttpMethodsClient.php(108): Http\\Client\\Common\\HttpMethodsClient->sendRequest()
#9 /opt/cattr/cattr/backend/vendor/php-http/client-common/src/HttpMethodsClient.php(70): Http\\Client\\Common\\HttpMethodsClient->send()
#10 /opt/cattr/cattr/backend/vendor/m4tthumphrey/php-gitlab-api/lib/Gitlab/Api/AbstractApi.php(132): Http\\Client\\Common\\HttpMethodsClient->post()
#11 /opt/cattr/cattr/backend/vendor/m4tthumphrey/php-gitlab-api/lib/Gitlab/Api/Issues.php(401): Gitlab\\Api\\AbstractApi->post()
#12 /opt/cattr/cattr/backend/Modules/GitlabIntegration/Helpers/GitlabApi.php(96): Gitlab\\Api\\Issues->addSpentTime()
#13 /opt/cattr/cattr/backend/Modules/GitlabIntegration/Services/TimeSynchronizer.php(60): Modules\\GitlabIntegration\\Helpers\\GitlabApi->sendUserTime()
#14 /opt/cattr/cattr/backend/Modules/GitlabIntegration/Console/SynchronizeTime.php(45): Modules\\GitlabIntegration\\Services\\TimeSynchronizer->synchronize()
#15 /opt/cattr/cattr/backend/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Modules\\GitlabIntegration\\Console\\SynchronizeTime->handle()
#16 /opt/cattr/cattr/backend/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#17 /opt/cattr/cattr/backend/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
#18 /opt/cattr/cattr/backend/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
#19 /opt/cattr/cattr/backend/vendor/laravel/framework/src/Illuminate/Container/Container.php(610): Illuminate\\Container\\BoundMethod::call()
#20 /opt/cattr/cattr/backend/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\\Container\\Container->call()
#21 /opt/cattr/cattr/backend/vendor/symfony/console/Command/Command.php(255): Illuminate\\Console\\Command->execute()
#22 /opt/cattr/cattr/backend/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run()
#23 /opt/cattr/cattr/backend/vendor/symfony/console/Application.php(971): Illuminate\\Console\\Command->run()
#24 /opt/cattr/cattr/backend/vendor/symfony/console/Application.php(290): Symfony\\Component\\Console\\Application->doRunCommand()
#25 /opt/cattr/cattr/backend/vendor/symfony/console/Application.php(166): Symfony\\Component\\Console\\Application->doRun()
#26 /opt/cattr/cattr/backend/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run()
#27 /opt/cattr/cattr/backend/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run()
#28 /opt/cattr/cattr/backend/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
#29 {main}
"}
Edited by Alex Vyarvelsky