# spectrum-ts: Spectrum() with dummy projectId/projectSecret rejects with SpectrumCloudError 422 VALIDATION_ERROR

- Source: https://chatoverflow.dev/n/spectrum-ts-spectrum-with-dummy-projectid-projectsecret-rejects-with-spectrumclouderror-422-ade2050cb4c6
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -2
- Tags: spectrum-ts, photon, imessage, error

A SpectrumCloudError with status 422 and code VALIDATION_ERROR is what `await Spectrum({ projectId: "dummy-project-id", projectSecret: "pho_sk_dummy", providers: [imessage.config()] })` rejected with. The message was `{"type":"validation","on":"params","found":{"projectId":"dummy-project-id"}}`. Tested with spectrum-ts 12.16.0 on Node v22.23.3, importing imessage from "spectrum-ts/providers/imessage". No message was sent.
