Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parse non-JSON response objects correctly #56

Merged
merged 1 commit into from
Sep 17, 2024
Merged
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
15 changes: 12 additions & 3 deletions src/BaseApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,20 @@
};

if (response.status < 200 || response.status >= 300) {
const error = (await response.json()) as APIError;
let error: APIError;
try {
error = (await response.json()) as APIError;
} catch (_) {
throw new StreamError(

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '8f2b44af-b726-45f5-b6f6-535b2d2f11a6', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'dede282f-d736-43c1-8938-d176b650d1e1', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '3508a0ec-1f6f-4c78-9c7d-27e1e2bddcec', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '14b74a5f-48af-4aae-9f6e-d02ba5220935', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'd385afc3-a25f-42ed-8008-42a8f0282a90', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'b6abb94c-9688-4f3d-b1e9-b4d3ccf275ca', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'd8ee3599-83d8-497e-bead-eefe9b3635a4', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-bun

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '6222b989-65aa-4a27-9aaf-323721059296', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '57a312cd-222f-4549-b28d-d0d34d22bd84', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '27720ac2-28ac-4d38-879f-163e52a98479', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'c0ed304e-5e2e-40b1-92da-1c79e877fbfe', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '65239f74-dd48-45fb-857f-9a723ac083d5', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '7ed149cc-e74e-4dfa-8a07-87cc1e659198', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '3f5d6a3c-35d4-47a8-81e6-9b8fda9b70fa', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'eabb86e0-ce2a-49f2-b0e7-f4befdfc95bd', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (18)

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '5a822c82-4775-4ecf-93ad-d1629bdddf13', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'b3208af4-ccec-473f-8806-c1b0ccf0afd9', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '85fbba6f-7c15-4881-b48f-2291e3e7aa46', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '49944db6-cf91-44b3-971a-4a45cf92595a', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'ac1f3ba0-db76-43be-9317-18e72eadc58d', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '884b5837-06fa-40bb-9893-77a1c5d6ca57', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '8361409e-df27-4167-931d-00ee9b9c218b', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (22)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'ee5b20dc-f60e-4336-99fa-fe1cbdbb914e', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (22)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'e392f491-a012-4485-92fc-201b48352ef4', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (22)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '88399511-6c8c-4dc7-9f73-0ccc30817a62', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (22)

__tests__/users.test.ts > user API > ban and unban

Error: Stream error: 404 - Not Found ❯ StreamChatClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamChatClient.ChatApi.queryBannedUsers src/gen/chat/ChatApi.ts:1699:22 ❯ __tests__/users.test.ts:106:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '6fa0fb07-dd87-4bf1-a4c8-db18efed278b', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 404, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 404 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (22)

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'c24cbf7c-a572-4c7d-a02e-517453220a76', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }

Check failure on line 59 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (22)

__tests__/users.test.ts > user API > block and unblock

Error: Stream error: 405 - Method Not Allowed ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:59:17 ❯ StreamClient.CommonApi.blockUsers src/gen/common/CommonApi.ts:822:22 ❯ __tests__/users.test.ts:152:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '6a92d3ad-a36d-426d-a35b-c80d59a51db4', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 405, rateLimit: { rateLimit: undefined, rateLimitRemaining: undefined, rateLimitReset: undefined } }, code: 405 }
`Stream error: ${response.status} - ${response.statusText}`,
metadata,
response.status,
);
}
throw new StreamError(

Check failure on line 65 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/users.test.ts > user API > create guest

Error: Stream error code 17: CreateGuest failed with error: "guest access is disabled for applications with multi-tenant enabled" ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:65:15 ❯ StreamClient.CommonApi.createGuest src/gen/common/CommonApi.ts:484:22 ❯ __tests__/users.test.ts:90:22 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '5c6c245a-c1fb-4a6d-b27c-de4162a25327', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 403, rateLimit: { rateLimit: 1000000, rateLimitRemaining: 999996, rateLimitReset: { constructor: 'Function<Date>', toString: 'Function<toString>', toDateString: 'Function<toDateString>', toTimeString: 'Function<toTimeString>', toISOString: 'Function<toISOString>', toUTCString: 'Function<toUTCString>', toGMTString: 'Function<toUTCString>', getDate: 'Function<getDate>', setDate: 'Function<setDate>', getDay: 'Function<getDay>', getFullYear: 'Function<getFullYear>', setFullYear: 'Function<setFullYear>', getHours: 'Function<getHours>', setHours: 'Function<setHours>', getMilliseconds: 'Function<getMilliseconds>', setMilliseconds: 'Function<setMilliseconds>', getMinutes: 'Function<getMinutes>', setMinutes: 'Function<setMinutes>', getMonth: 'Function<getMonth>', setMonth: 'Function<setMonth>', getSeconds: 'Function<getSeconds>', setSeconds: 'Function<setSeconds>', getTime: 'Function<getTime>', setTime: 'Function<setTime>', getTimezoneOffset: 'Function<getTimezoneOffset>', getUTCDate: 'Function<getUTCDate>', setUTCDate: 'Function<setUTCDate>', getUTCDay: 'Function<getUTCDay>', getUTCFullYear: 'Function<getUTCFullYear>', setUTCFullYear: 'Function<setUTCFullYear>', getUTCHours: 'Function<getUTCHours>', setUTCHours: 'Function<setUTCHours>', getUTCMilliseconds: 'Function<getUTCMilliseconds>', setUTCMilliseconds: 'Function<setUTCMilliseconds>', getUTCMinutes: 'Function<getUTCMinutes>', setUTCMinutes: 'Function<setUTCMinutes>', getUTCMonth: 'Function<getUTCMonth>', setUTCMonth: 'Function<setUTCMonth>', getUTCSeconds: 'Function<getUTCSeconds>', setUTCSeconds: 'Function<setUTCSeconds>', valueOf: 'Function<valueOf>', getYear: 'Function<getYear>', setYear: 'Function<setYear>', toJSON: 'Function<toJSON>', toLocaleString: 'Function<toLocaleString>', toLocaleDateString: 'Function<toLocaleDateString>', toLocaleTimeString: 'Function<toLocaleTimeString>' } } }, code: 17 }

Check failure on line 65 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/users.test.ts > user API > create guest

Error: Stream error code 17: CreateGuest failed with error: "guest access is disabled for applications with multi-tenant enabled" ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:65:15 ❯ StreamClient.CommonApi.createGuest src/gen/common/CommonApi.ts:484:22 ❯ __tests__/users.test.ts:90:22 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'ed444575-3275-4e8d-851d-d898d10b20a0', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 403, rateLimit: { rateLimit: 1000000, rateLimitRemaining: 999995, rateLimitReset: { constructor: 'Function<Date>', toString: 'Function<toString>', toDateString: 'Function<toDateString>', toTimeString: 'Function<toTimeString>', toISOString: 'Function<toISOString>', toUTCString: 'Function<toUTCString>', toGMTString: 'Function<toUTCString>', getDate: 'Function<getDate>', setDate: 'Function<setDate>', getDay: 'Function<getDay>', getFullYear: 'Function<getFullYear>', setFullYear: 'Function<setFullYear>', getHours: 'Function<getHours>', setHours: 'Function<setHours>', getMilliseconds: 'Function<getMilliseconds>', setMilliseconds: 'Function<setMilliseconds>', getMinutes: 'Function<getMinutes>', setMinutes: 'Function<setMinutes>', getMonth: 'Function<getMonth>', setMonth: 'Function<setMonth>', getSeconds: 'Function<getSeconds>', setSeconds: 'Function<setSeconds>', getTime: 'Function<getTime>', setTime: 'Function<setTime>', getTimezoneOffset: 'Function<getTimezoneOffset>', getUTCDate: 'Function<getUTCDate>', setUTCDate: 'Function<setUTCDate>', getUTCDay: 'Function<getUTCDay>', getUTCFullYear: 'Function<getUTCFullYear>', setUTCFullYear: 'Function<setUTCFullYear>', getUTCHours: 'Function<getUTCHours>', setUTCHours: 'Function<setUTCHours>', getUTCMilliseconds: 'Function<getUTCMilliseconds>', setUTCMilliseconds: 'Function<setUTCMilliseconds>', getUTCMinutes: 'Function<getUTCMinutes>', setUTCMinutes: 'Function<setUTCMinutes>', getUTCMonth: 'Function<getUTCMonth>', setUTCMonth: 'Function<setUTCMonth>', getUTCSeconds: 'Function<getUTCSeconds>', setUTCSeconds: 'Function<setUTCSeconds>', valueOf: 'Function<valueOf>', getYear: 'Function<getYear>', setYear: 'Function<setYear>', toJSON: 'Function<toJSON>', toLocaleString: 'Function<toLocaleString>', toLocaleDateString: 'Function<toLocaleDateString>', toLocaleTimeString: 'Function<toLocaleTimeString>' } } }, code: 17 }

Check failure on line 65 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/users.test.ts > user API > create guest

Error: Stream error code 17: CreateGuest failed with error: "guest access is disabled for applications with multi-tenant enabled" ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:65:15 ❯ StreamClient.CommonApi.createGuest src/gen/common/CommonApi.ts:484:22 ❯ __tests__/users.test.ts:90:22 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: '4338fa1f-0f77-45c2-b2b3-25628b4ffc3d', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 403, rateLimit: { rateLimit: 1000000, rateLimitRemaining: 999994, rateLimitReset: { constructor: 'Function<Date>', toString: 'Function<toString>', toDateString: 'Function<toDateString>', toTimeString: 'Function<toTimeString>', toISOString: 'Function<toISOString>', toUTCString: 'Function<toUTCString>', toGMTString: 'Function<toUTCString>', getDate: 'Function<getDate>', setDate: 'Function<setDate>', getDay: 'Function<getDay>', getFullYear: 'Function<getFullYear>', setFullYear: 'Function<setFullYear>', getHours: 'Function<getHours>', setHours: 'Function<setHours>', getMilliseconds: 'Function<getMilliseconds>', setMilliseconds: 'Function<setMilliseconds>', getMinutes: 'Function<getMinutes>', setMinutes: 'Function<setMinutes>', getMonth: 'Function<getMonth>', setMonth: 'Function<setMonth>', getSeconds: 'Function<getSeconds>', setSeconds: 'Function<setSeconds>', getTime: 'Function<getTime>', setTime: 'Function<setTime>', getTimezoneOffset: 'Function<getTimezoneOffset>', getUTCDate: 'Function<getUTCDate>', setUTCDate: 'Function<setUTCDate>', getUTCDay: 'Function<getUTCDay>', getUTCFullYear: 'Function<getUTCFullYear>', setUTCFullYear: 'Function<setUTCFullYear>', getUTCHours: 'Function<getUTCHours>', setUTCHours: 'Function<setUTCHours>', getUTCMilliseconds: 'Function<getUTCMilliseconds>', setUTCMilliseconds: 'Function<setUTCMilliseconds>', getUTCMinutes: 'Function<getUTCMinutes>', setUTCMinutes: 'Function<setUTCMinutes>', getUTCMonth: 'Function<getUTCMonth>', setUTCMonth: 'Function<setUTCMonth>', getUTCSeconds: 'Function<getUTCSeconds>', setUTCSeconds: 'Function<setUTCSeconds>', valueOf: 'Function<valueOf>', getYear: 'Function<getYear>', setYear: 'Function<setYear>', toJSON: 'Function<toJSON>', toLocaleString: 'Function<toLocaleString>', toLocaleDateString: 'Function<toLocaleDateString>', toLocaleTimeString: 'Function<toLocaleTimeString>' } } }, code: 17 }

Check failure on line 65 in src/BaseApi.ts

View workflow job for this annotation

GitHub Actions / test-node (20)

__tests__/users.test.ts > user API > create guest

Error: Stream error code 17: CreateGuest failed with error: "guest access is disabled for applications with multi-tenant enabled" ❯ StreamClient.BaseApi.sendRequest src/BaseApi.ts:65:15 ❯ StreamClient.CommonApi.createGuest src/gen/common/CommonApi.ts:484:22 ❯ __tests__/users.test.ts:90:22 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { metadata: { clientRequestId: 'dc385314-d924-46cc-9104-1f983653c29c', responseHeaders: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, responseCode: 403, rateLimit: { rateLimit: 1000000, rateLimitRemaining: 999993, rateLimitReset: { constructor: 'Function<Date>', toString: 'Function<toString>', toDateString: 'Function<toDateString>', toTimeString: 'Function<toTimeString>', toISOString: 'Function<toISOString>', toUTCString: 'Function<toUTCString>', toGMTString: 'Function<toUTCString>', getDate: 'Function<getDate>', setDate: 'Function<setDate>', getDay: 'Function<getDay>', getFullYear: 'Function<getFullYear>', setFullYear: 'Function<setFullYear>', getHours: 'Function<getHours>', setHours: 'Function<setHours>', getMilliseconds: 'Function<getMilliseconds>', setMilliseconds: 'Function<setMilliseconds>', getMinutes: 'Function<getMinutes>', setMinutes: 'Function<setMinutes>', getMonth: 'Function<getMonth>', setMonth: 'Function<setMonth>', getSeconds: 'Function<getSeconds>', setSeconds: 'Function<setSeconds>', getTime: 'Function<getTime>', setTime: 'Function<setTime>', getTimezoneOffset: 'Function<getTimezoneOffset>', getUTCDate: 'Function<getUTCDate>', setUTCDate: 'Function<setUTCDate>', getUTCDay: 'Function<getUTCDay>', getUTCFullYear: 'Function<getUTCFullYear>', setUTCFullYear: 'Function<setUTCFullYear>', getUTCHours: 'Function<getUTCHours>', setUTCHours: 'Function<setUTCHours>', getUTCMilliseconds: 'Function<getUTCMilliseconds>', setUTCMilliseconds: 'Function<setUTCMilliseconds>', getUTCMinutes: 'Function<getUTCMinutes>', setUTCMinutes: 'Function<setUTCMinutes>', getUTCMonth: 'Function<getUTCMonth>', setUTCMonth: 'Function<setUTCMonth>', getUTCSeconds: 'Function<getUTCSeconds>', setUTCSeconds: 'Function<setUTCSeconds>', valueOf: 'Function<valueOf>', getYear: 'Function<getYear>', setYear: 'Function<setYear>', toJSON: 'Function<toJSON>', toLocaleString: 'Function<toLocaleString>', toLocaleDateString: 'Function<toLocaleDateString>', toLocaleTimeString: 'Function<toLocaleTimeString>' } } }, code: 17 }
`Stream error code ${error.code}: ${error.message}`,
`Stream error code ${error!.code}: ${error!.message}`,
metadata,
error.code,
error!.code,
undefined,
);
}
Expand Down
Loading