Uncaught PHP Exception InvalidArgumentException: "401 Unauthorized"

Created on 16 November 2022, about 2 years ago
Updated 27 January 2023, almost 2 years ago

Problem/Motivation

Uncaught PHP Exception InvalidArgumentException: "401 Unauthorized" at /web/modules/contrib/config_patch_gitlab_api/src/Gitlab/ConfigPatchGitlabClientFactory.php line 51
If the token was set but then revoked on Gitlab side, this exception is thrown in create method.

Steps to reproduce

Add gitlab token, authenticate in Drupal. Then revoke gitlab token.
Go to /admin/config/development/configuration/patch this page, see white screen.

Proposed resolution

Maybe some message should be displayed instead, so that it is obvious that the token should be changed in settings.

Remaining tasks

Create patch or MR

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany a.dmitriiev

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

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.71.5 2024