Error when access unpublished post #118

Closed
opened 2025-08-05 19:30:29 +08:00 by squid · 0 comments
Owner

Logs

ZodError: [
  {
    "expected": "string",
    "code": "invalid_type",
    "path": [
      "info",
      "published_time"
    ],
    "message": "Invalid input: expected string, received null"
  }
]
    at PostResponseDto.fromJson (file:///app/build/server/chunks/postApiServiceImpl-BEwpu5aI.js:11677:43)
    at PostApiServiceImpl.getPost (file:///app/build/server/chunks/postApiServiceImpl-BEwpu5aI.js:11712:28)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async PostRepositoryImpl.getPost (file:///app/build/server/chunks/postApiServiceImpl-BEwpu5aI.js:11500:17)
    at async PostBloc.loadPost (file:///app/build/server/chunks/postBloc-L2deTyip.js:57:18)
    at async load (file:///app/build/server/chunks/4-CCNPlWw2.js:13:17)
    at async load_server_data (file:///app/build/server/index.js:1666:18)
    at async file:///app/build/server/index.js:3365:18
### Logs ``` ZodError: [ { "expected": "string", "code": "invalid_type", "path": [ "info", "published_time" ], "message": "Invalid input: expected string, received null" } ] at PostResponseDto.fromJson (file:///app/build/server/chunks/postApiServiceImpl-BEwpu5aI.js:11677:43) at PostApiServiceImpl.getPost (file:///app/build/server/chunks/postApiServiceImpl-BEwpu5aI.js:11712:28) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostRepositoryImpl.getPost (file:///app/build/server/chunks/postApiServiceImpl-BEwpu5aI.js:11500:17) at async PostBloc.loadPost (file:///app/build/server/chunks/postBloc-L2deTyip.js:57:18) at async load (file:///app/build/server/chunks/4-CCNPlWw2.js:13:17) at async load_server_data (file:///app/build/server/index.js:1666:18) at async file:///app/build/server/index.js:3365:18 ```
squid added this to the 0.3 milestone 2025-08-05 19:30:29 +08:00
squid added the
bug
dev
frontend
labels 2025-08-05 19:30:29 +08:00
squid added this to the Pre-release Development Plan project 2025-08-05 19:30:29 +08:00
squid moved this to To Do in Pre-release Development Plan on 2025-08-05 19:30:45 +08:00
squid moved this to In Progress in Pre-release Development Plan on 2025-08-06 20:20:54 +08:00
squid added reference main 2025-08-06 20:41:49 +08:00
squid changed reference from main to BLOG-118_fix_error_when_access_unpublished_post 2025-08-06 20:41:53 +08:00
squid closed this issue 2025-08-06 21:36:54 +08:00
squid moved this to Done in Pre-release Development Plan on 2025-08-06 21:39:19 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: squid/blog#118
No description provided.