When migrating about 10,000 products, the script aborts around 5,000 products because the API access token expires. Is there any way to lengthen the token time or remove the timeout?
output:
`
Destination PIM database initialization...
Migrating files data...
Migrating structure data...
Migrating families data...
Migrating system data...
Migrating jobs data...
Migrating groups data...
Migrating extra data...
Migrating reference data...
Migrating products data...
[Akeneo\Pim\ApiClient\Exception\UnprocessableEntityHttpException (422)]
The access token provided has expired.
Exception trace:
() at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Client/HttpExceptionHandler.php:53
Akeneo\Pim\ApiClient\Client\HttpExceptionHandler->transformResponseToException() at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Client/HttpClient.php:46
Akeneo\Pim\ApiClient\Client\HttpClient->sendRequest() at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Client/AuthenticatedHttpClient.php:67
Akeneo\Pim\ApiClient\Client\AuthenticatedHttpClient->sendRequest() at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Pagination/Page.php:138
Akeneo\Pim\ApiClient\Pagination\Page->getPage() at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Pagination/Page.php:78
Akeneo\Pim\ApiClient\Pagination\Page->getNextPage() at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Pagination/ResourceCursor.php:60
Akeneo\Pim\ApiClient\Pagination\ResourceCursor->next() at /var/www/akeneo/transporteo/src/Domain/MigrationStep/s140_ProductMigration/ProductMigrator.php:67
Akeneo\PimMigration\Domain\MigrationStep\s140_ProductMigration\ProductMigrator->migrateProducts() at /var/www/akeneo/transporteo/src/Domain/MigrationStep/s140_ProductMigration/ProductMigrator.php:56
Akeneo\PimMigration\Domain\MigrationStep\s140_ProductMigration\ProductMigrator->migrate() at /var/www/akeneo/transporteo/src/Infrastructure/MigrationStep/S140FromDestinationPimReferenceDataMigratedToDestinationPimProductMigrated.php:45
Akeneo\PimMigration\Infrastructure\MigrationStep\S140FromDestinationPimReferenceDataMigratedToDestinationPimProductMigrated->onDestinationPimProductMigration() at n/a:n/a
call_user_func() at /var/www/akeneo/transporteo/vendor/symfony/event-dispatcher/EventDispatcher.php:212
Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() at /var/www/akeneo/transporteo/vendor/symfony/event-dispatcher/EventDispatcher.php:44
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /var/www/akeneo/transporteo/vendor/symfony/workflow/Workflow.php:256
Symfony\Component\Workflow\Workflow->transition() at /var/www/akeneo/transporteo/vendor/symfony/workflow/Workflow.php:137
Symfony\Component\Workflow\Workflow->apply() at /var/www/akeneo/transporteo/src/Infrastructure/TransporteoStateMachine.php:97
Akeneo\PimMigration\Infrastructure\TransporteoStateMachine->start() at /var/www/akeneo/transporteo/src/Infrastructure/UserInterface/Cli/Transporteo.php:54
Akeneo\PimMigration\Infrastructure\UserInterface\Cli\Transporteo->execute() at /var/www/akeneo/transporteo/vendor/symfony/console/Command/Command.php:264
Symfony\Component\Console\Command\Command->run() at /var/www/akeneo/transporteo/vendor/symfony/console/Application.php:887
Symfony\Component\Console\Application->doRunCommand() at /var/www/akeneo/transporteo/vendor/symfony/console/Application.php:223
Symfony\Component\Console\Application->doRun() at /var/www/akeneo/transporteo/vendor/symfony/console/Application.php:130
Symfony\Component\Console\Application->run() at /var/www/akeneo/transporteo/Transporteo.php:17`
I know this is pretty much the same as #120 but not using hybrid storage. Also, for some reason I must have only looked for "API Token" and not just "token" so I missed the other ticket.
When migrating about 10,000 products, the script aborts around 5,000 products because the API access token expires. Is there any way to lengthen the token time or remove the timeout?
output: ` Destination PIM database initialization... Migrating files data... Migrating structure data... Migrating families data... Migrating system data... Migrating jobs data... Migrating groups data... Migrating extra data... Migrating reference data... Migrating products data...
[Akeneo\Pim\ApiClient\Exception\UnprocessableEntityHttpException (422)] The access token provided has expired.
Exception trace: () at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Client/HttpExceptionHandler.php:53 Akeneo\Pim\ApiClient\Client\HttpExceptionHandler->transformResponseToException() at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Client/HttpClient.php:46 Akeneo\Pim\ApiClient\Client\HttpClient->sendRequest() at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Client/AuthenticatedHttpClient.php:67 Akeneo\Pim\ApiClient\Client\AuthenticatedHttpClient->sendRequest() at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Pagination/Page.php:138 Akeneo\Pim\ApiClient\Pagination\Page->getPage() at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Pagination/Page.php:78 Akeneo\Pim\ApiClient\Pagination\Page->getNextPage() at /var/www/akeneo/transporteo/vendor/akeneo/api-php-client/src/Pagination/ResourceCursor.php:60 Akeneo\Pim\ApiClient\Pagination\ResourceCursor->next() at /var/www/akeneo/transporteo/src/Domain/MigrationStep/s140_ProductMigration/ProductMigrator.php:67 Akeneo\PimMigration\Domain\MigrationStep\s140_ProductMigration\ProductMigrator->migrateProducts() at /var/www/akeneo/transporteo/src/Domain/MigrationStep/s140_ProductMigration/ProductMigrator.php:56 Akeneo\PimMigration\Domain\MigrationStep\s140_ProductMigration\ProductMigrator->migrate() at /var/www/akeneo/transporteo/src/Infrastructure/MigrationStep/S140FromDestinationPimReferenceDataMigratedToDestinationPimProductMigrated.php:45 Akeneo\PimMigration\Infrastructure\MigrationStep\S140FromDestinationPimReferenceDataMigratedToDestinationPimProductMigrated->onDestinationPimProductMigration() at n/a:n/a call_user_func() at /var/www/akeneo/transporteo/vendor/symfony/event-dispatcher/EventDispatcher.php:212 Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() at /var/www/akeneo/transporteo/vendor/symfony/event-dispatcher/EventDispatcher.php:44 Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /var/www/akeneo/transporteo/vendor/symfony/workflow/Workflow.php:256 Symfony\Component\Workflow\Workflow->transition() at /var/www/akeneo/transporteo/vendor/symfony/workflow/Workflow.php:137 Symfony\Component\Workflow\Workflow->apply() at /var/www/akeneo/transporteo/src/Infrastructure/TransporteoStateMachine.php:97 Akeneo\PimMigration\Infrastructure\TransporteoStateMachine->start() at /var/www/akeneo/transporteo/src/Infrastructure/UserInterface/Cli/Transporteo.php:54 Akeneo\PimMigration\Infrastructure\UserInterface\Cli\Transporteo->execute() at /var/www/akeneo/transporteo/vendor/symfony/console/Command/Command.php:264 Symfony\Component\Console\Command\Command->run() at /var/www/akeneo/transporteo/vendor/symfony/console/Application.php:887 Symfony\Component\Console\Application->doRunCommand() at /var/www/akeneo/transporteo/vendor/symfony/console/Application.php:223 Symfony\Component\Console\Application->doRun() at /var/www/akeneo/transporteo/vendor/symfony/console/Application.php:130 Symfony\Component\Console\Application->run() at /var/www/akeneo/transporteo/Transporteo.php:17`