Skip to content

Module marketplace fails to load: getAvailableModules returns HTTP 400 on fresh install #1083

Description

@jorikfon

Description

English Description

Multiple users report that the module marketplace fails to load for at least ~3 days, even on a clean, fresh install. The browser console shows the REST call to list available modules returning HTTP 400:

/pbxcore/api/v3/modules:getAvailableModules:1
  Failed to load resource: the server responded with a status of 400 ()

API: Server gave an error: error /pbxcore/api/v3/modules:getAvailableModules

Current Implementation Overview

  • getAvailableModules returns HTTP 400; the marketplace page cannot list modules.
  • Reproduces on a brand-new clean install (so it is not a per-install corruption).

Root cause unknown — needs triage

This may be a backend/marketplace-server-side problem rather than a defect in Core's PHP code (the reporter himself asked "Provider?"). Please confirm whether:

  1. The marketplace/license backend is returning 400 to the request MikoPBX sends, or
  2. Core builds a malformed request (e.g. a missing/invalid board parameter — cf. In key outgoing HTTP requests, send the board parameter #940) that the backend rejects with 400.

Capturing the actual outbound request and the backend response body is the first triage step.

Proposed Changes / Solution

  • Reproduce and capture the full request/response for getAvailableModules.
  • If backend-side: route to the marketplace service owners.
  • If Core-side: fix the request construction and add an integration check.

Benefits

  • Restores the ability to browse/install modules on fresh installs of the current release.

Русское описание

Несколько пользователей сообщают, что маркетплейс модулей не загружается уже как минимум ~3 дня, даже на чистой свежей установке. В консоли браузера REST‑запрос списка доступных модулей возвращает HTTP 400:

/pbxcore/api/v3/modules:getAvailableModules:1
  Failed to load resource: the server responded with a status of 400 ()

API: Server gave an error: error /pbxcore/api/v3/modules:getAvailableModules

Обзор текущего поведения

  • getAvailableModules возвращает HTTP 400; страница маркетплейса не может отобразить модули.
  • Воспроизводится на абсолютно чистой установке (значит, дело не в повреждении конкретной инсталляции).

Причина неизвестна — требуется анализ

Это может быть проблема на стороне бэкенда/сервера маркетплейса, а не дефект PHP‑кода Core (сам автор спросил «Провайдер?»). Нужно установить:

  1. Бэкенд маркетплейса/лицензий возвращает 400 на запрос, который шлёт MikoPBX, или
  2. Core формирует некорректный запрос (например, отсутствует/неверен параметр board — ср. In key outgoing HTTP requests, send the board parameter #940), который бэкенд отклоняет с 400.

Первый шаг — снять реальный исходящий запрос и тело ответа бэкенда.

Предлагаемые изменения

  • Воспроизвести и снять полный запрос/ответ для getAvailableModules.
  • Если проблема на бэкенде — передать владельцам сервиса маркетплейса.
  • Если в Core — исправить формирование запроса и добавить интеграционную проверку.

Reported in: Telegram «MikoPBX community», user @oleg_cg (Олег), 2026-06-11. Reproduces on clean fresh install.
Status: needs-triage — root cause may be server-side (marketplace backend), not Core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneed testNeed to test it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions