tinyhumansai/openhuman · warning

Please paste a meeting link.

Error message

Please paste a meeting link.

What it means

Client-side input validation in joinMeetViaBackendBot: the user-supplied meetUrl is trimmed and, if empty, the function refuses to call the core at all. It guards the openhuman.agent_meetings_join RPC from being invoked with no join URL — the backend's Recall.ai bot has nothing to dial without it.

Solutions

  1. Validate before submit: disable the Join action until meetUrl.trim() is non-empty
  2. Pre-validate the URL shape (Google Meet / Zoom / Teams / Webex) to also catch non-empty-but-invalid input before hitting the core
  3. In the catch, map this message to an inline field error rather than a toast

Example fix

// before
const canJoin = true; // always clickable

// after
const canJoin = input.meetUrl.trim().length > 0;
<button disabled={!canJoin} onClick={() => joinMeetViaBackendBot(input)}>Join</button>
Defensive patterns

Strategy: validation

Validate before calling

function hasMeetingLink(meetUrl: string): boolean {
  return meetUrl.trim().length > 0;
}

Type guard

const SUPPORTED = /^https:\/\/(meet\.google\.com|[a-z0-9.-]*zoom\.us|teams\.microsoft\.com|[a-z0-9.-]*webex\.com)\//i;
function isSupportedMeetUrl(u: string): boolean {
  const s = u.trim();
  return s.length > 0 && SUPPORTED.test(s);
}

Try / catch

try {
  await joinMeetViaBackendBot(input);
} catch (err) {
  if (err instanceof Error && err.message === 'Please paste a meeting link.') {
    setFieldError('meetUrl', 'Paste a Google Meet, Zoom, Teams or Webex link.');
    return;
  }
  throw err;
}

Prevention

When it happens

Trigger: joinMeetViaBackendBot({ meetUrl: '' }) or a whitespace-only link — i.e. the Join form submitted with an empty input; programmatic callers passing an unpopulated form field.

Common situations: Join button enabled without required-field validation; paste handlers that fail to fill state; automated flows calling join before collecting the URL.

Understand the failure class

Background: "must not be empty", "cannot be empty" — required-field validation errors across open-source libraries — this error's family across 41 libraries.

Related errors


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/f3e5508d86649a72. Report an issue: GitHub.

Appendix: source

Thrown at app/src/services/meetCallService.ts:228

  listenOnly?: boolean;
};

type CoreBackendMeetJoinResponse = { ok: boolean; meet_url: string; platform: string };

/**
 * Join a meeting via the backend's Recall.ai bot. Supports Google Meet,
 * Zoom, Microsoft Teams, and Webex.
 *
 * Calls the core RPC `openhuman.agent_meetings_join`, which emits `bot:join`
 * over the core's persistent Socket.IO connection to the backend. The backend
 * streams events back (`bot:reply`, `bot:harness`, `bot:transcript`, `bot:left`)
 * which the core bridges to the frontend as `agent_meetings:*` socket events.
 */
export async function joinMeetViaBackendBot(
  input: BackendMeetJoinInput
): Promise<{ meetUrl: string; platform: string }> {
  const meetUrl = input.meetUrl.trim();
  if (!meetUrl) throw new Error('Please paste a meeting link.');

  // Dual-mascot slots (issue #4277), mapped to the backend's snake_case wire
  // shape. Absent → backend falls back to `mascot_id`.
  const slots = input.mascots?.filter(m => m.mascotId?.trim());
  const mascots =
    slots && slots.length > 0
      ? slots.map(m => ({
          mascot_id: m.mascotId.trim(),
          name: m.name?.trim() || undefined,
          voice_id: m.voiceId?.trim() || undefined,
          rive_colors: mapRiveColors(m.riveColors),
        }))
      : undefined;

  // Flow/state metadata only — no participant names, voices, or the meet URL.
  log(
    'backend bot join corr=%s dual=%s slots=%d singleMascot=%s riveColors=%s',
    input.correlationId?.trim() || '-',

View on GitHub (pinned to 7491200858)