Skip to content

API Action Gravity Deviation from Docs #2671

@bauzer714

Description

@bauzer714

Versions

  • Pi-hole: 6.2.1
  • Web: 6.3
  • FTL: 6.3

Platform

  • OS and version: Debian
  • Platform: Linux

Expected behavior

The /api/action/gravity api response no longer matches the documentation values. This seems to have changed to include additional web UI coloring details based on this commit. Currently unsure if I need to adjust my API implementation (this is expected) or if there is a known bug.

Actual behavior / bug

Current Text Response:

 [i] Building tree...
�[K  [�[32m✓�[0m] Building tree
  [i] Number of gravity domains: 3113670 (�[1m2336151 unique domains�[0m)
  [i] Number of exact denied domains: 0
  [i] Number of regex denied filters: 2
  [i] Number of exact allowed domains: 23
  [i] Number of regex allowed filters: 11
  [i] Optimizing database...
�[K  [�[32m✓�[0m] Optimizing database
  [i] Swapping databases...
�[K  [�[32m✓�[0m] Swapping databases

Steps to reproduce

Steps to reproduce the behavior:

  1. Execute post to /api/action/gravity -or-
  2. Utilize Browser and pihole web with network tab open to capture same results.

Debug Token

  • URL: Doesn't seem needed.

Screenshots

Current Documentation:

Image

Current API Response captured in Bruno:

Image

Current Web UI response

Image

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions