Uncaught PHP Exception InvalidArgumentException: "401 Unauthorized"

Created on 16 November 2022, over 1 year ago
Updated 27 January 2023, over 1 year 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.69.0 2024