Not A Database

not-a-database · 422

The service named is a web service, and a tunnel opens to a database only, so the API opened none.

service is the service's name. The CLI prints the refusal and exits with code 2, as for a usage mistake.

Besides the members every error carries, this type adds service.

Common causes

  • ghaym cloud connect was given the name of a web service, such as the app rather than its database.
  • Two services have similar names, and the wrong one was picked.

How to fix the call

  • Run ghaym cloud connect with the database's name: list the project's services to find it.
  • To reach the web service, use its address: a tunnel isn't for it.

Example response

json
{
  "type": "not-a-database",
  "title": "Not A Database",
  "detail": "storefront is a web service. Tunnels open to databases only.",
  "service": "storefront",
  "requestId": "req-1785231000000-4f7b2c9ae",
  "timestamp": "2026-07-28T09:30:00.000Z",
  "path": "/v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/tunnels",
  "method": "POST",
  "instance": "POST /v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/tunnels",
  "status": 422,
  "docs": "https://ghaym.me/docs/errors/not-a-database"
}