{"record":{"id":"ee6b24cb9d57d3b4","repo":"pathwaycom/pathway","slug":"refresh-interval-ms-was-replaced-by-refresh-int","errorCode":null,"errorMessage":"`refresh_interval_ms` was replaced by `refresh_interval`, which takes seconds or a timedelta. {suggestion}","messagePattern":"`refresh_interval_ms` was replaced by `refresh_interval`, which takes seconds or a timedelta\\. (.+?)","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"python/pathway/io/airbyte/__init__.py","lineNumber":353,"sourceCode":"    bigger bill.\n    \"\"\"\n    if \"refresh_interval_ms\" in kwargs:\n        passed = kwargs[\"refresh_interval_ms\"]\n        if (\n            isinstance(passed, (int, float))\n            and not isinstance(passed, bool)\n            and math.isfinite(passed)\n        ):\n            seconds = passed / 1000\n            if seconds == int(seconds):\n                seconds = int(seconds)\n            suggestion = (\n                f\"Use refresh_interval={seconds} (or timedelta(seconds={seconds})) \"\n                f\"instead of refresh_interval_ms={passed}.\"\n            )\n        else:\n            suggestion = \"Use refresh_interval=<seconds> (or a timedelta) instead.\"\n        raise TypeError(\n            \"`refresh_interval_ms` was replaced by `refresh_interval`, which takes \"\n            \"seconds or a timedelta. \" + suggestion\n        )\n    refresh_interval_seconds = as_duration_seconds(refresh_interval, \"refresh_interval\")\n\n    with optional_imports(\"airbyte\"):\n        from google.oauth2.service_account import Credentials as ServiceCredentials\n\n        from pathway.io.airbyte.logic import _PathwayAirbyteSubject\n        from pathway.third_party.airbyte_serverless.sources import RemoteAirbyteSource\n\n    with open(config_file_path, \"r\") as f:\n        yaml_config = f.read()\n\n    source: AbstractAirbyteSource\n    config = yaml.safe_load(yaml_config)\n    source_config = config[\"source\"]\n    source_config[\"streams\"] = streams","sourceCodeStart":335,"sourceCodeEnd":371,"githubUrl":"https://github.com/pathwaycom/pathway/blob/fa2f74a4649b7c5908690cf60137263d8d80de5f/python/pathway/io/airbyte/__init__.py#L335-L371","documentation":"Error \"`refresh_interval_ms` was replaced by `refresh_interval`, which takes seconds or a timedelta. {suggestion}\" thrown in pathwaycom/pathway.","triggerScenarios":"Thrown at python/pathway/io/airbyte/__init__.py:353 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rename refresh_interval_ms to refresh_interval and pass seconds (int/float) or a datetime.timedelta instead of milliseconds."],"exampleFix":"pw.io.airbyte.read(..., refresh_interval=datetime.timedelta(milliseconds=old_value_ms))","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa2f74a4649b7c5908690cf60137263d8d80de5f","analyzedAt":"2026-08-15T01:48:17.006Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}