Uninstalling Akamai triggers a "ServiceNotFoundException" exception

Created on 3 October 2023, 9 months ago
Updated 5 December 2023, 7 months ago

Problem/Motivation

I'm trying to uninstall the akamai module in my local environment via Drush and I'm getting a ServiceNotFoundException error.

Steps to reproduce

  1. Install the development version of this Purge module: $ composer require 'drupal/purge:3.x-dev@dev'
  2. Install the Akamai integration module:
    1. $ composer require 'drupal/akamai:^5.0@RC'
    2. $ drush en akamai
    3. No API setup is needed! The issue lies within Drupal's internal codebase, no external connection is necessary to be made to reproduce.
  3. Configure the Purge system similar like this:
  4. Uninstall the Akamai integration module by Drush: $ drush pmu akamai

Expected:
The Akamai module should uninstall without error.

Experienced:

$ drush pmu akamai

> In Container.php line 157:
>
> You have requested a non-existent service "akamai.client.factory".
>

Proposed resolution

Catch the ServiceNotFoundException exception when retrieving enabled purgers.

Remaining tasks

  • Validate the proposed approach
  • Reviews

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇹Italy plach Venezia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024