Skip to content

Response validation failed: coolify.projects.list and projectsList: #2

@MindSetFPS

Description

@MindSetFPS
> Request: GET http://192.168.1.178:8000/api/v1/projects
  Headers:
    accept: application/json
    authorization: Bearer 1|apikey
    cookie: 
    user-agent: speakeasy-sdk/typescript 0.1.1 2.460.1 0.1 coolify
  Body:
    <null>
< Response: GET http://192.168.1.178:8000/api/v1/projects
  Status Code: 200 OK
  Headers:
    access-control-allow-origin: *
    cache-control: no-cache, private
    connection: keep-alive
    content-type: application/json
    date: Sat, 03 May 2025 18:10:10 GMT
    server: nginx
    transfer-encoding: chunked
    x-ratelimit-limit: 200
    x-ratelimit-remaining: 199
  Body:
    [
      {
        id: 1,
        uuid: "lok084808cksgk0w8kwskowc",
        name: "My first project",
        description: null,
      }
    ]
14 |    * The raw message that failed validation.
15 |    */
16 |   public readonly rawMessage: unknown;
17 | 
18 |   constructor(message: string, cause: unknown, rawValue: unknown) {
19 |     super(`${message}: ${cause}`);
         ^
SDKValidationError: Response validation failed: [
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "null",
    "path": [
      0,
      "description"
    ],
    "message": "Expected string, received null"
  }
]
   rawValue: [
  [Object ...]
],
 rawMessage: "Response validation failed",

      at new SDKValidationError (/config/workspace/chat-ally/coolify-test/node_modules/coolify/src/models/errors/sdkvalidationerror.ts:19:5)
      at safeParse (/config/workspace/chat-ally/coolify-test/node_modules/coolify/src/lib/schemas.ts:49:16)
      at <anonymous> (/config/workspace/chat-ally/coolify-test/node_modules/coolify/src/lib/matchers.ts:275:9)

162 | class ZodError extends Error {
163 |     get errors() {
164 |         return this.issues;
165 |     }
166 |     constructor(issues) {
167 |         super();
              ^
ZodError: [
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "null",
    "path": [
      0,
      "description"
    ],
    "message": "Expected string, received null"
  }
]
    issues: [
  [Object ...]
],
  addIssue: [Function],
 addIssues: [Function],

      at new ZodError (/config/workspace/chat-ally/coolify-test/node_modules/zod/lib/index.mjs:167:9)
      at error (/config/workspace/chat-ally/coolify-test/node_modules/zod/lib/index.mjs:587:31)
      at parse (/config/workspace/chat-ally/coolify-test/node_modules/zod/lib/index.mjs:663:15)
      at safeParse (/config/workspace/chat-ally/coolify-test/node_modules/coolify/src/lib/schemas.ts:47:15)
      at <anonymous> (/config/workspace/chat-ally/coolify-test/node_modules/coolify/src/lib/matchers.ts:275:9)

Bun v1.2.2 (Linux x64)```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions