Skip to content

Conversation

@rolodato
Copy link
Contributor

~/s/f/edge-proxy►rye run edge-proxy-render-config                 (feat/get-identities-endpoint) 13:20
/Users/rolodato/source/flagsmith/edge-proxy/.venv/lib/python3.12/site-packages/pydantic/main.py:398: UserWarning: Pydantic serializer warnings:
  Expected `url` but got `str` - serialized value may not be as expected
  return self.__pydantic_serializer__.to_json(
{
    "environment_key_pairs": [
        {
            "server_side_key": "ser.environment_key",
            "client_side_key": "environment_key"
        }
    ],
    "api_url": "https://edge.api.flagsmith.com/api/v1",
    "api_poll_frequency_seconds": 10,
    "api_poll_timeout_seconds": 5,
    "allow_origins": [
        "*"
    ],
    "logging": {
        "enable_access_log": false,
        "log_format": "generic",
        "log_level": "INFO",
        "log_event_field_name": "message",
        "colours": false,
        "override": {}
    },
    "server": {
        "host": "0.0.0.0",
        "port": 8000,
        "reload": false
    },
    "health_check": {
        "environment_update_grace_period_seconds": 30
    }
}

The README description is technically incorrect since we only print to stdout if we actually wrote a config.json. Instead of changing the behaviour I chose to replace this with a less descriptive but more correct one.

@rolodato rolodato merged commit 2fcc313 into main Feb 20, 2025
2 checks passed
@rolodato rolodato deleted the fix/render-config branch February 20, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants