Can't create new gallery posts #153

Closed
opened 2022-09-15 01:00:51 +00:00 by norm · 2 comments
Owner

When trying to create a new post in the Gallery, the server returns an error.

Server log:

INFO 1  [server]          <-- POST /api/gallery/posts/create
INFO 1  [server]          --> POST /api/gallery/posts/create 500 3ms 214b

Client error:
image

When trying to create a new post in the Gallery, the server returns an error. Server log: ``` INFO 1 [server] <-- POST /api/gallery/posts/create INFO 1 [server] --> POST /api/gallery/posts/create 500 3ms 214b ``` Client error: ![image](/attachments/475d452f-d23e-4aaf-98fa-517841fad14b)
Owner

I tried and got this error.

{
	"error": {
		"message": "Invalid param.",
		"code": "INVALID_PARAM",
		"id": "3d81ceae-475f-4600-b2a8-2bc116157532",
		"kind": "client",
		"info": {
			"param": "#/properties/fileIds/minItems",
			"reason": "must NOT have fewer than 1 items"
		}
	}
}

You need to have at least 1 attachment to make a gallery post.

I tried and got this error. ```json { "error": { "message": "Invalid param.", "code": "INVALID_PARAM", "id": "3d81ceae-475f-4600-b2a8-2bc116157532", "kind": "client", "info": { "param": "#/properties/fileIds/minItems", "reason": "must NOT have fewer than 1 items" } } } ``` You need to have at least 1 attachment to make a gallery post.
Author
Owner

Yeah the error message presented could be made more descriptive.

Yeah the error message presented could be made more descriptive.
Sign in to join this conversation.
No labels
feature
fix
upkeep
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#153
No description provided.