# 0hmx - @ohmx random-test-1/emdash/olive-lights... Channel: #contributor Source: https://discord.com/channels/1233487248129921135/1532106617515147415 Started: 2026-07-29T19:24:43.343000+00:00 Last activity: 2026-07-30T02:41:49.724000+00:00 ## 0hmx β€” 2026-07-29T19:24:42.780000+00:00 ``` @ohmx random-test-1/emdash/olive-lights-wear-q1p6m on ξ‚  emdash/olive-lights-wear-q1p6m [?] is πŸ“¦ v1.0.0 via πŸ₯Ÿ v1.3.10 took 1s ❯ tsci import RK3566 βœ– Failed to import part [ { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "dataStr", "head", "editorVersion" ], "message": "Required" }, { "code": "invalid_type", "expected": "boolean", "received": "undefined", "path": [ "dataStr", "head", "hasIdFlag" ], "message": "Required" }, { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "dataStr", "BBox" ], "message": "Required" }, { "code": "invalid_union", "unionErrors": [ { "issues": [ { "code": "invalid_type", "expected": "array", "received": "undefined", "path": [ "dataStr", "colors" ], "message": "Required" } ], "name": "ZodError" }, { "issues": [ { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "dataStr", "colors" ], "message": "Required" } ], "name": "ZodError" } ], "path": [ "dataStr", "colors" ], "message": "Invalid input" } ] @ohmx random-test-1/emdash/olive-lights-wear-q1p6m on ξ‚  emdash/olive-lights-wear-q1p6m [?] is πŸ“¦ v1.0.0 via πŸ₯Ÿ v1.3.10 took 3s ❯ ``` what dose this error mean? Attachment: image.png β€” https://community.tscircuit.com/media/1532106617208705207 ## Seve β€” 2026-07-29T19:31:30.904000+00:00 use tsci import C2843676 maybe? ## Seve β€” 2026-07-29T19:31:34.640000+00:00 or whatever the jlc part number is ## Seve β€” 2026-07-29T19:31:38.553000+00:00 idk that's a weird error ## Seve β€” 2026-07-29T19:31:41.252000+00:00 someone should fix ## Seve β€” 2026-07-29T19:32:02.871000+00:00 CC <@1067854999889137715> possible bug in jlcpcb import ## 0hmx β€” 2026-07-30T02:33:10.791000+00:00 ``` @ohmx random-test-1/emdash/olive-lights-wear-q1p6m on ξ‚  emdash/olive-lights-wear-q1p6m [?] is πŸ“¦ v1.0.0 via πŸ₯Ÿ v1.3.10 took 2s ❯ tsci import C2943786 βœ– Failed to import part [ { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "dataStr", "head", "editorVersion" ], "message": "Required" }, { "code": "invalid_type", "expected": "boolean", "received": "undefined", "path": [ "dataStr", "head", "hasIdFlag" ], "message": "Required" }, { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "dataStr", "BBox" ], "message": "Required" }, { "code": "invalid_union", "unionErrors": [ { "issues": [ { "code": "invalid_type", "expected": "array", "received": "undefined", "path": [ "dataStr", "colors" ], "message": "Required" } ], "name": "ZodError" }, { "issues": [ { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "dataStr", "colors" ], "message": "Required" } ], "name": "ZodError" } ], "path": [ "dataStr", "colors" ], "message": "Invalid input" } ] ``` same error with `tsci import C2943786` ## 0hmx β€” 2026-07-30T02:33:23.599000+00:00 <@809856037376491570> ## techmannih β€” 2026-07-30T02:33:29.191000+00:00 Search works correctly and resolves RK3566 to C2943786. The import fails afterward because EasyEDA returns footprint-only data with an empty schematic, omitting editorVersion, hasIdFlag, BBox, and colors. Our Zod schema is too strict and incorrectly required these fields, causing validation to fail before conversion. ## 0hmx β€” 2026-07-30T02:35:26.183000+00:00 Makes sense. Just make sure errors like this are not shown to the user. Instead, display a shorter message such as: β€œAn internal error occurred” or β€œInvalid footprint or import data error” ## techmannih β€” 2026-07-30T02:41:49.724000+00:00 Yes, these missing fields now have safe defaults, so this Zod error will no longer reach the user. For import errors should be add a short message for users separately.