[GH-ISSUE #1192] [Bug] Error:Field validation for 'OrderBy' failed on the 'required' tag while deploy to 1Panel v2.1.0 #808

Closed
opened 2026-03-03 01:06:09 +03:00 by kerem · 2 comments
Owner

Originally created by @bigsk05 on GitHub (Feb 13, 2026).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1192

Release Version / 软件版本

v0.4.17

Description / 缺陷描述

[2026-02-13 15:05:09]
could not deploy certificate
[2026-02-13 15:05:09]
failed to upload certificate file: failed to execute sdk request '1panel.WebsiteSSLSearch': sdkerr: api error: code='400', message='请求参数错误: Key: 'WebsiteSSLSearch.OrderBy' Error:Field validation for 'OrderBy' failed on the 'required' tag Key: 'WebsiteSSLSearch.Order' Error:Field validation for 'Order' failed on the 'required' tag'

I found:

				websiteSSLSearchReq := &onepanelsdk.WebsiteSSLSearchRequest{
					Page:     int32(searchWebsiteSSLPage),
					PageSize: int32(searchWebsiteSSLPageSize),
				}
				websiteSSLSearchResp, err := sdkClient.WebsiteSSLSearch(websiteSSLSearchReq)
				c.logger.Debug("sdk request '1panel.WebsiteSSLSearch'", slog.Any("request", websiteSSLSearchReq), slog.Any("response", websiteSSLSearchResp))
				if err != nil {
					return nil, false, fmt.Errorf("failed to execute sdk request '1panel.WebsiteSSLSearch': %w", err)
				}

But doc said we need:

{
  "domain": "",
  "order": "null",
  "orderBy": "expire_date",
  "page": 1,
  "pageSize": 100
}

I'm still checking for other version of 1Panel, I'm sure this is a bug.

Steps to reproduce / 复现步骤

  1. Add a 1Panel v2 provider
  2. Deploy SSL to 1Panel's websites

Logs / 日志

# Paste logs here / 请在此粘贴日志

Miscellaneous / 其他

No response

Contribution / 贡献代码

  • I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
Originally created by @bigsk05 on GitHub (Feb 13, 2026). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1192 ### Release Version / 软件版本 v0.4.17 ### Description / 缺陷描述 ``` [2026-02-13 15:05:09] could not deploy certificate [2026-02-13 15:05:09] failed to upload certificate file: failed to execute sdk request '1panel.WebsiteSSLSearch': sdkerr: api error: code='400', message='请求参数错误: Key: 'WebsiteSSLSearch.OrderBy' Error:Field validation for 'OrderBy' failed on the 'required' tag Key: 'WebsiteSSLSearch.Order' Error:Field validation for 'Order' failed on the 'required' tag' ``` I found: ``` websiteSSLSearchReq := &onepanelsdk.WebsiteSSLSearchRequest{ Page: int32(searchWebsiteSSLPage), PageSize: int32(searchWebsiteSSLPageSize), } websiteSSLSearchResp, err := sdkClient.WebsiteSSLSearch(websiteSSLSearchReq) c.logger.Debug("sdk request '1panel.WebsiteSSLSearch'", slog.Any("request", websiteSSLSearchReq), slog.Any("response", websiteSSLSearchResp)) if err != nil { return nil, false, fmt.Errorf("failed to execute sdk request '1panel.WebsiteSSLSearch': %w", err) } ``` But doc said we need: ``` { "domain": "", "order": "null", "orderBy": "expire_date", "page": 1, "pageSize": 100 } ``` I'm still checking for other version of 1Panel, I'm sure this is a bug. ### Steps to reproduce / 复现步骤 1. Add a 1Panel v2 provider 2. Deploy SSL to 1Panel's websites ### Logs / 日志 <details> ```console # Paste logs here / 请在此粘贴日志 ``` </details> ### Miscellaneous / 其他 _No response_ ### Contribution / 贡献代码 - [ ] I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
kerem 2026-03-03 01:06:09 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@bigsk05 commented on GitHub (Feb 13, 2026):

I have already found the problem
This bug was caused by the v2.1.0 update of 1Panel
The solution to this is:

{
  "order": "null",
  "orderBy": "expire_date",
  "page": 1,
  "pageSize": 100
}

Add order and orderBy params while making a request, and there's no need to separate processing of different versions; the previous version of 1Panel will do nothing with these two params.

I'll make a Pull Request later to solve this

<!-- gh-comment-id:3895346087 --> @bigsk05 commented on GitHub (Feb 13, 2026): I have already found the problem This bug was caused by the v2.1.0 update of 1Panel The solution to this is: ``` { "order": "null", "orderBy": "expire_date", "page": 1, "pageSize": 100 } ``` Add `order` and `orderBy` params while making a request, and there's no need to separate processing of different versions; the previous version of 1Panel will do nothing with these two params. I'll make a Pull Request later to solve this
Author
Owner

@fudiwei commented on GitHub (Feb 28, 2026):

Memo: This breaking change was introduced in https://github.com/1Panel-dev/1Panel/pull/10372 , but was reverted in https://github.com/1Panel-dev/1Panel/pull/11926 .

Affected versions: 1Panel v2.0.11 ~ v2.1.1

<!-- gh-comment-id:3976262205 --> @fudiwei commented on GitHub (Feb 28, 2026): Memo: This breaking change was introduced in https://github.com/1Panel-dev/1Panel/pull/10372 , but was reverted in https://github.com/1Panel-dev/1Panel/pull/11926 . Affected versions: 1Panel v2.0.11 ~ v2.1.1
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/certimate#808
No description provided.