State info

class Tribler.Core.Modules.restapi.state_endpoint.StateEndpoint(session)[source]

This endpoint is responsible for handing all requests regarding the state of Tribler.

GET /state

A GET request to this endpoint returns the current state of the Tribler core. There are three states: - STARTING: The core of Tribler is starting - UPGRADING: The upgrader is active - STARTED: The Tribler core has started - EXCEPTION: An exception has occurred in the core

Example request:

curl -X GET http://localhost:8085/state

Example response:

    "state": "STARTED",
    "last_exception": None,
    "readable_state": ""