Skip to content

feat(sdk): add proper error handling #24641

feat(sdk): add proper error handling

feat(sdk): add proper error handling #24641

Triggered via pull request January 9, 2026 02:13
Status Failure
Total duration 27m 22s
Artifacts 12

main.yml

on: pull_request
Matrix: build-and-test-templates
Matrix: tests-e2e
Matrix: tests-int
tests-unit
44s
tests-unit
tests-types
1m 9s
tests-types
tests-type-generation
36s
tests-type-generation
Matrix: tests-e2e-turbo
All Green
2s
All Green
Publish Canary
0s
Publish Canary
Fit to window
Zoom out
Zoom in

Annotations

19 errors
int-postgres
Process completed with exit code 1.
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should have error data for ValidationError: test/sdk/int.spec.ts#L476
AssertionError: expected undefined to be 'emails' // Object.is equality - Expected: "emails" + Received: undefined ❯ test/sdk/int.spec.ts:476:43
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should throw PayloadSDKError on update with invalid data: test/sdk/int.spec.ts#L413
AssertionError: expected 500 to be 400 // Object.is equality - Expected + Received - 400 + 500 ❯ test/sdk/int.spec.ts:413:35
int-sqlite-uuid
Process completed with exit code 1.
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should have error data for ValidationError: test/sdk/int.spec.ts#L476
AssertionError: expected undefined to be 'emails' // Object.is equality - Expected: "emails" + Received: undefined ❯ test/sdk/int.spec.ts:476:43
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should throw PayloadSDKError on update with invalid data: test/sdk/int.spec.ts#L413
AssertionError: expected 500 to be 400 // Object.is equality - Expected + Received - 400 + 500 ❯ test/sdk/int.spec.ts:413:35
int-postgres-uuid
Process completed with exit code 1.
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should have error data for ValidationError: test/sdk/int.spec.ts#L476
AssertionError: expected undefined to be 'emails' // Object.is equality - Expected: "emails" + Received: undefined ❯ test/sdk/int.spec.ts:476:43
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should throw PayloadSDKError on update with invalid data: test/sdk/int.spec.ts#L413
AssertionError: expected 500 to be 400 // Object.is equality - Expected + Received - 400 + 500 ❯ test/sdk/int.spec.ts:413:35
int-postgres-custom-schema
Process completed with exit code 1.
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should have error data for ValidationError: test/sdk/int.spec.ts#L476
AssertionError: expected undefined to be 'emails' // Object.is equality - Expected: "emails" + Received: undefined ❯ test/sdk/int.spec.ts:476:43
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should throw PayloadSDKError on update with invalid data: test/sdk/int.spec.ts#L413
AssertionError: expected 500 to be 400 // Object.is equality - Expected + Received - 400 + 500 ❯ test/sdk/int.spec.ts:413:35
int-sqlite
Process completed with exit code 1.
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should have error data for ValidationError: test/sdk/int.spec.ts#L476
AssertionError: expected undefined to be 'emails' // Object.is equality - Expected: "emails" + Received: undefined ❯ test/sdk/int.spec.ts:476:43
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should throw PayloadSDKError on update with invalid data: test/sdk/int.spec.ts#L413
AssertionError: expected 500 to be 400 // Object.is equality - Expected + Received - 400 + 500 ❯ test/sdk/int.spec.ts:413:35
int-supabase
Process completed with exit code 1.
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should have error data for ValidationError: test/sdk/int.spec.ts#L476
AssertionError: expected undefined to be 'emails' // Object.is equality - Expected: "emails" + Received: undefined ❯ test/sdk/int.spec.ts:476:43
[int] test/sdk/int.spec.ts > @payloadcms/sdk > Error Handling > should throw PayloadSDKError on update with invalid data: test/sdk/int.spec.ts#L413
AssertionError: expected 500 to be 400 // Object.is equality - Expected + Received - 400 + 500 ❯ test/sdk/int.spec.ts:413:35
All Green
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size Digest
test-results-access-control Expired
2.52 MB
sha256:4052154227a0edd79a0a202d477278c05c18b4c734c97bf200da126206f5863c
test-results-admin__e2e__document-view Expired
5.26 MB
sha256:c13362a70ecf12d8a3d8a1d45cde874050174e68b9d20eb54aa06b0913161e92
test-results-admin__e2e__list-view Expired
27.6 MB
sha256:f8483e5c0592d8d1c1085898f7277445bff14e51edf72b355f8567f6aae167eb
test-results-field-error-states Expired
2.04 MB
sha256:a7498d5ee8c0bec4e6ab67700f6f43317ee1666e01d8c9f6eee1fb6566817cfa
test-results-fields__collections__Blocks#config.blockreferences.ts Expired
3.1 MB
sha256:83762eef600436aac96f970d2081d4bcaa0253c201d1c08de2e156559f960b18
test-results-i18n Expired
6.49 MB
sha256:0cd87c07264b4d6855a2ac2c05b271a7103cac6018b7deaeddf734ad52f38b8b
test-results-joins Expired
1.57 MB
sha256:67d1969956bd1d8fbbd8e2fe40a9405693d4f4a954f55c0a2d2ad6fe60ccab4e
test-results-lexical__collections___LexicalFullyFeatured Expired
4.54 MB
sha256:71d8708a1849745c4e32ba1f63c835a44103635619ceb7e921884ad02dc38df9
test-results-live-preview Expired
3.93 MB
sha256:c608cb5114dff7f72d3f5b4187ea5ca1f732cb6477e8d3c3096dd912e110d951
test-results-localization Expired
6.96 MB
sha256:08f8538544467a16e109adabf60c28314e1dd75ef4605d1974fa9b4f9d7376ca
test-results-locked-documents Expired
3.68 MB
sha256:28c50d31915ef84fa52d30b3c635afe1050b2d0cf10e492aa1ec8af82b30aca7
test-results-sort Expired
5.42 KB
sha256:deea1ca5b81dbac54367b17a5b54351f05038960e4f00004954df678d6e9bc58