Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.110.0"
".": "0.111.0"
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.111.0](https://github.com/kernel/kernel-python-sdk/compare/v0.110.0...v0.111.0) (2026-09-18)


### Features

* Publish restricted_route_unavailable and unknown proxy_error codes ([64805ae](https://github.com/kernel/kernel-python-sdk/commit/64805ae68f0978264fb77801e8e94a470a039e94))

## [0.110.0](https://github.com/kernel/kernel-python-sdk/compare/v0.109.0...v0.110.0) (2026-09-18)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "kernel"
version = "0.110.0"
version = "0.111.0"
description = "The official Python library for the kernel API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "kernel"
__version__ = "0.110.0" # x-release-please-version
__version__ = "0.111.0" # x-release-please-version
19 changes: 16 additions & 3 deletions src/kernel/types/browsers/browser_proxy_error_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,23 @@ class Data(BrowserEventContext):
"provider_unreachable",
"provider_rejected",
"origin_tls_timeout",
"origin_response_incomplete",
"proxy_unavailable",
"restricted_route_unavailable",
"upstream_timeout",
"upstream_dns_failure",
"upstream_connect_failed",
"unknown",
]
"""
Proxy-layer error code: the X-Kernel-Proxy-Error response header value from a
branded 5xx error page served by the metro egress host-proxy. Values mirror what
the proxy emits: destination_blocked, provider_blacklisted,
provider_unreachable, provider_rejected, origin_tls_timeout, proxy_unavailable,
upstream_timeout, upstream_dns_failure, upstream_connect_failed. Unknown header
values are dropped.
provider_unreachable, provider_rejected, origin_tls_timeout,
origin_response_incomplete, proxy_unavailable, restricted_route_unavailable,
upstream_timeout, upstream_dns_failure, upstream_connect_failed. A header value
the browser image does not recognize is reported as unknown, with the header
value in raw_code.
"""

request_id: str
Expand All @@ -45,6 +50,14 @@ class Data(BrowserEventContext):
method: Optional[str] = None
"""HTTP method of the failed request, when known."""

raw_code: Optional[str] = None
"""Sanitized X-Kernel-Proxy-Error header value, present only when code is unknown.

Surrounding whitespace is removed, the value is lowercased, characters outside
[a-z0-9_] are replaced with \\__, and the result is truncated to at most 64
characters.
"""

resource_type: Optional[str] = None
"""CDP Network.ResourceType for the request, when known."""

Expand Down
Loading