Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Admin API /admin/virtual-models and /admin/provider-credentials return HTTP 500 (empty body) since 0.1.84

Closed
#881 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@SantiagoDePolonia is already working on this.

Since Sep 4, 2026.

  • #882 by @SantiagoDePolonia — closed without merging
  • #883 by @SantiagoDePolonia — merged

Assessment

This issue has not been assessed yet.

Description

Summary

On latest release v0.1.86, GET /admin/virtual-models and GET /admin/provider-credentials both return HTTP 500 with an empty body. The dashboard's "Virtual Models" and "Providers" panels therefore fail to load. The API key auth works fine (401 -> 500 boundary is clean); the server crashes during response serialization.

Environment
  • GoModel version: v0.1.86 (commit 7c934f49, built 2026-09-02T19:13:49Z)
  • OS: Windows (local single-node)
  • Storage: SQLite
  • Auth: proper Authorization: Bearer <master-key>
Reproduction
  1. Start gomodel v0.1.86.
  2. curl -H "Authorization: Bearer <master-key>" http://127.0.0.1:8080/admin/virtual-models
  3. Receive HTTP 500 with empty response body.
  4. Same for GET /admin/provider-credentials.

Without auth, the same endpoint returns 401 {"error":{"message":"missing credentials: ..."}} — so authentication is correctly enforced and the crash happens after auth, during handler/serialization.

Expected

HTTP 200 with the list of virtual models / provider credentials.

Impact
  • Dashboard web UI: "Virtual Models" and "Providers" panels fail to load (blank/error).
  • Actual model routing is NOT affected: GET /v1/models returns 200 with all models; virtual models (e.g. mycoding, myvision) still route requests successfully.
  • This is purely an admin/management-plane issue, not a data-plane issue.
Notes / related
  • The 0.1.84 changelog contains a breaking change: "Admin API: virtual-model responses now use a targets[] array instead of separate provider/model fields (#788)". Our DB data is already the new targets[] format, yet GET /admin/virtual-models still 500s — suggesting a handler regression in the 0.1.84+ admin API.
  • The server is launched with stderr discarded, so no panic stack is visible; the 500 has no JSON error body.
Suggested

Please check the admin handlers for /admin/virtual-models and /admin/provider-credentials for a regression introduced in 0.1.84 (serializing targets[] or provider credential rows). Happy to provide more detail / debug logs if useful.


Environment details provided by s-edi (Windows) on 2026-09-04.

Dominant language
Go
Stars
1.2k
Forks
111
Avg merge
1d 9h
Merged PRs (30d)
123

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ENTERPILOT/GoModel

All issues in ENTERPILOT/GoModel

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.