Skip to content

Installing 2.7.0 results in "HTTP code 500" in API #830

@HovKlan-DH

Description

@HovKlan-DH

Describe the bug
After installing the newest 2.7.0 version on my Netgate 4200 then I can no longer control the API and I get HTTP code 500.

To Reproduce
Steps to reproduce the behavior:

  • Make sure I do not have any API installed from previously:
    • pkg-static delete pfSense-pkg-RESTAPI
  • Install newest version for my router with version 25.11-RELEASE (amd64) installed:
    • pkg-static -C /dev/null add https://github.com/pfrest/pfSense-pkg-RESTAPI/releases/latest/download/pfSense-25.11-pkg-RESTAPI.pkg
  • Querying this end-point (which works with previous version): /api/v2/firewall/rule will give this error:

{"code":500,"status":"internal server error","response_id":"ENDPOINT_RECEIVED_UNEXPECTED_ERROR","message":"Undefined constant ``\n#0 \/usr\/local\/pkg\/RESTAPI\/Core\/BaseTraits.inc(56): constant()\n#1 \/usr\/local\/pkg\/RESTAPI\/Core\/Auth.inc(297): RESTAPI\\Core\\Auth::log()\n#2 \/usr\/local\/pkg\/RESTAPI\/Core\/Endpoint.inc(615): RESTAPI\\Core\\Auth::attempt_multi_auth()\n#3 \/usr\/local\/pkg\/RESTAPI\/Core\/Endpoint.inc(1048): RESTAPI\\Core\\Endpoint->check_auth()\n#4 \/usr\/local\/www\/api\/v2\/firewall\/rule\/index.php(9): RESTAPI\\Core\\Endpoint->process_request()\n#5 {main}","data":[]}

pfSense Version & Package Version:

  • API version: 2.7.0
  • Hardware: Netgate 4200 with 25.11-RELEASE (amd64) installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions