glanceapp/glance · error

not implemented

Error message

not implemented

What it means

Error "not implemented" thrown in glanceapp/glance.

Source

Thrown at internal/glance/widget.go:206

func (w *widgetBase) update(ctx context.Context) {

}

func (w *widgetBase) GetID() uint64 {
	return w.ID
}

func (w *widgetBase) setID(id uint64) {
	w.ID = id
}

func (w *widgetBase) setHideHeader(value bool) {
	w.HideHeader = value
}

func (widget *widgetBase) handleRequest(w http.ResponseWriter, r *http.Request) {
	http.Error(w, "not implemented", http.StatusNotImplemented)
}

func (w *widgetBase) GetType() string {
	return w.Type
}

func (w *widgetBase) setProviders(providers *widgetProviders) {
	w.Providers = providers
}

func (w *widgetBase) renderTemplate(data any, t *template.Template) template.HTML {
	w.templateBuffer.Reset()
	err := t.Execute(&w.templateBuffer, data)
	if err != nil {
		w.ContentAvailable = false
		w.Error = err

		slog.Error("Failed to render template", "error", err)

View on GitHub (pinned to 91324e8de7)

Solutions

  1. This is returned by the base widget for endpoints a widget does not implement; do not call the widget's request endpoint directly.
  2. If you expected a widget-specific API endpoint, use a widget type that implements handleRequest or avoid requesting that route.

When it happens

Trigger: Raised when a widget's update path reaches a default/unimplemented branch, i.e. the widget type has no update implementation.

Common situations: A widget type was registered without implementing its update handler, or a base widget method was called directly instead of being overridden.


AI-assisted analysis of glanceapp/glance@91324e8de7 (2026-08-15). Data as JSON: /api/errors/93b7041327859b5d. Report an issue: GitHub.