Problem/Motivation

A site using this module has hit a problem with the shorttext field because it is longer 100 characters.

 GuzzleHttp\Exception\ClientException: Client error: `POST https://tom.vgwort.de/api/external/metis/rest/message/v1.0/newMessageRequest` resulted in a `400 Bad Request` response:
{"errorField":"messagetext.shorttext","objectName":"newMessageRequest","message":"size must be between 1 and 100"}

Steps to reproduce

See a message with a shorttext longer 100 characters to VG Wort.

Proposed resolution

Truncate the short text to the nearest word boundary to 100 characters.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

Issue fork vgwort-3447327

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review
daniel.bosen’s picture

Status: Needs review » Reviewed & tested by the community

lgtm

alexpott’s picture

  • alexpott committed 042d4807 on 2.x
    Issue #3447327 by alexpott: The shorttext value must be between 1 and...
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.