shows 'Connection failed' when the connection works but the instance has no segments

Created on 26 June 2023, about 1 year ago

Problem/Motivation

This code will cause the error to show if the connection works but returns no segments:

            '#description' => $client->segments()->listSegments() ? $this->t('Connection successfully established via @type!', ['@type' => $connector_id]) : $this->t('Connection failed, there was a problem with the connection to the UNOMI API instance.'),

That's misleading, as the problem doesn't lie with the admin configuration in Drupal but with the Unomi instance.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

User interface

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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

Comments & Activities

Production build 0.69.0 2024