Skip to main content

aip_sdk.ResponseParseError

aip_sdk.ResponseParseError(message: str)

A platform response this SDK version could not use.

Usually a successful response — meaning whatever it describes did happen — but the platform is running a newer release that added a value to a closed vocabulary (e.g. a span kind); upgrading the SDK resolves it. Raised too if an error response's own body (e.g. a 422's reported failures) doesn't match what this SDK version expects to read; the raising call documents what that means for whether anything was stored. The underlying validation failure is kept as the exception's __cause__.

Raised as well when a well-formed response cannot be followed — an auto-paginating walk handed a cursor it has already used. Upgrading does not fix that one, and it carries no __cause__.

Attributes

  • request_id: Identifier the platform assigned to the response that could not be read. Quote it to support to have the response itself retrieved — a version skew is settled by the response body, the one thing the caller cannot see.
  • correlation_id: Identifier covering the whole call.

aip_sdk.ResponseParseError.correlation_id​

aip_sdk.ResponseParseError.correlation_id = current_correlation_id()

No docstring is defined in the source.

aip_sdk.ResponseParseError.request_id​

aip_sdk.ResponseParseError.request_id = current_request_id()

No docstring is defined in the source.