Can't save announcements #54

Closed
opened 2022-08-03 05:27:06 +00:00 by norm · 4 comments
Owner

Whenever I try to save an announcement, I just get a blank error message.

Whenever I try to save an announcement, I just get a blank error message.
Author
Owner

Git bisect didn't help narrow down things this time due to some build failures between HEAD and the good commit I picked (2f4704ccff).

Git bisect didn't help narrow down things this time due to some build failures between HEAD and the good commit I picked (2f4704ccffacea4ca68bee6ef521b228adcbe960).
Owner

Did you check if there is any more detail about the error when you check the reply from the server in the dev tools or if there is anything in the server logs?

Did you check if there is any more detail about the error when you check the reply from the server in the dev tools or if there is anything in the server logs?
Author
Owner

Nothing I've seen on the server log but in the dev tools I get this error:
image

Nothing I've seen on the server log but in the dev tools I get this error: ![image](/attachments/a5a01b29-4a3b-4282-a114-3612cbbce720)
100 KiB
Owner

It seems there is an issue with vue modeling the text field. I filled out the form with title "test" and text "test announcement".

This is the request to /api/admin/announcement/create:
{
	"id": null,
	"title": "test",
	"text": "",
	"imageUrl": null
}
This is the response from the server:
{
	"error": {
		"message": "Invalid param.",
		"code": "INVALID_PARAM",
		"id": "3d81ceae-475f-4600-b2a8-2bc116157532",
		"kind": "client",
		"info": {
			"param": "#/properties/text/minLength",
			"reason": "must NOT have fewer than 1 characters"
		}
	}
}
It seems there is an issue with vue modeling the `text` field. I filled out the form with title "test" and text "test announcement". <details> <summary>This is the request to <code>/api/admin/announcement/create</code>:</summary> ```json { "id": null, "title": "test", "text": "", "imageUrl": null } ``` </details> <details> <summary>This is the response from the server:</summary> ```json { "error": { "message": "Invalid param.", "code": "INVALID_PARAM", "id": "3d81ceae-475f-4600-b2a8-2bc116157532", "kind": "client", "info": { "param": "#/properties/text/minLength", "reason": "must NOT have fewer than 1 characters" } } } ``` </details>
Sign in to join this conversation.
No Label
feature
fix
upkeep
No Milestone
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#54
No description provided.