fix: parse non-JSON response objects correctly (#56) #197
Annotations
9 errors and 1 warning
Test:
src/BaseApi.ts#L59
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: '97e871c2-f054-4fb3-9e7b-b402718f397f', 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 }
|
Test:
src/BaseApi.ts#L59
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: '54aa3fcd-f136-410d-a79d-db32cf00cc87', 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 }
|
Test:
src/BaseApi.ts#L59
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: '2629817e-188b-42ef-86d3-f2d88412cecd', 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 }
|
Test:
src/BaseApi.ts#L59
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: '7f02b49a-5632-4863-8f2a-7df9176cce65', 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 }
|
Test:
src/BaseApi.ts#L59
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: 'a3f2b5bc-1d76-4d77-afe0-48dde9733ccc', 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 }
|
Test:
src/BaseApi.ts#L59
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: 'a3a63e43-d007-45d0-ac62-e5489b9d3d73', 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 }
|
Test:
src/BaseApi.ts#L59
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: '71bd20de-3a34-4bad-b15b-a2d6b30d9ffe', 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 }
|
Test:
src/BaseApi.ts#L59
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: '2dcae482-1aef-4116-b3ec-25159a0c1e4c', 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 }
|
Test
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading