Skip to content

Conversation

@alexjpwalker
Copy link
Member

Usage and product changes

In the HTTP/TS driver, isApiErrorResponse and isOkResponse should never throw errors anymore for any input.

Motivation

Although their input is theoretically restricted, in practice errors in TypeScript usually have the any type when they're thrown from HTTP libraries such as fetch.

Implementation

Check that the input is actually an object before scanning it

@alexjpwalker alexjpwalker merged commit 590b5d0 into typedb:master Sep 23, 2025
9 checks passed
@alexjpwalker alexjpwalker deleted the http-ts-err-checks branch September 23, 2025 14:03
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.

2 participants