500 Error when creating a template

Created on 23 August 2023, almost 2 years ago
Updated 11 September 2023, almost 2 years ago

Problem/Motivation

When attempting to create a template at admin/config/services/gathercontent/create-template, I receive a 500 error from the gathercontent server.

Steps to reproduce

  1. Install version 6.1.0 of this module.
  2. Configure authentication so that it connects to a gathercontent project. The project should have Items (content) and Templates (structure) applied to those items.
  3. Go to admin/config/services/gathercontent/create-template and select a value for each of the three fields.
  4. Press "Create".

The error message is:
GuzzleHttp\Exception\ServerException: Server error: `POST https://api.gathercontent.com/projects/123456/templates` resulted in a `500 Internal Server Error` response: { "error": "unknown error", "code": 500 } in GuzzleHttp\Exception\RequestException::create() (line 113 of /var/www/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php).

Farther up the call stack is this:

GuzzleHttp\Client->request('POST', 'https://api.gathercontent.com/projects/123456/templates', Array) (Line: 895)
GatherContent\GatherContentClient->sendRequest('POST', 'projects/123456/templates', Array) (Line: 860)
GatherContent\GatherContentClient->sendPost('projects/123456/templates', Array) (Line: 554)
GatherContent\GatherContentClient->templatePost('123456', 'Article', Object) (Line: 240)
Drupal\gathercontent_upload\Export\MappingCreator->generateMapping('node', 'article', '123456') (Line: 138)

Proposed resolution

Find cause of the issue and fix it.

Remaining tasks

Find cause of the issue and fix it.

User interface changes

none

API changes

unknown

Data model changes

unknown

πŸ› Bug report
Status

Fixed

Version

6.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States nadavoid

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

Comments & Activities

Production build 0.71.5 2024