当前位置: 首页 > 知识库问答 >
问题:

Synology API SetCameraSchedule - GET 414 Request-URI 太大|不允许开机自检405

林魁
2023-03-14

我正试图通过Synology API更改摄像头通知时间表。

GET请求返回414请求URI太大,POST请求返回405不允许

使用get请求似乎不可能做到这一点。请帮我修复POST请求!

以下是这个方法的文档:第241页SetCameraSchedule https://usdl . synology . com/download/Document/developer guide/Surveillance _ Station _ Web _ API _ v 2.6 . pdf

GET func返回:请求URI太大

def syn_cam_notification_shedule_set(cam_id, event_type, state):
cam_id = str(cam_id)
event_type = str(event_type)
state = str(state)
url = 'https://'+server+'/webapi/entry.cgi?version="1"&schedule=[{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"}]&eventType='+event_type+'&cameraId='+cam_id+'&api="SYNO.SurveillanceStation.Notification.Schedule"&method="SetCameraSchedule"'
print(url)
r = s.get(url, verify=False)
print(r.text)

POST func返回:不允许405

def syn_cam_notification_shedule_set(cam_id, event_type, state):
cam_id = cam_id
event_type = event_type
state = str(state)
url = 'https://'+server+'/webapi/entry.cgi'

data = {
    '_sid': sid,
    'version': '1',
    'schedule': '[{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"}]',
    'eventType': event_type,
    'cameraId': cam_id,
    'api': 'SYNO.SurveillanceStation.Notification.Schedule',
    'method': 'SetCameraSchedule'
}
r = s.post(url, data=data, verify=False)
print(r.text)

这是我的其他代码:

s = requests.Session()

def syn_login():
    url = 'https://'+server+"/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=6&account="+login+"&passwd="+password+"&session=SurveillanceStation"
    r = s.get(url, verify=False)
    r_json = json.loads(r.text)
    if r_json['success']:
        print(r_json['data']['sid'])
        return r_json['data']['sid']

sid = syn_login()

共有1个答案

陆洛城
2023-03-14

我通过修改Synology Nginx配置(通过SSH访问)解决了这个问题

我创建一个新文件 /etc/nginx/conf.d/http.size.conf

并添加以下内容:

client_header_buffer_size 64k;
large_client_header_buffers 4 64k;

然后用<code>sudo-synoservicectl重新启动nginx服务--重新启动ngin

如果您正在开发一个Python库,以便与Monilyce Station API进行交互,如果您有兴趣:这里

 类似资料:
  • 前面提到,服务器通电后,会直接进入 BIOS,BIOS 全称 Basic Input/Output System,中文可译为基本输入/输出系统。 简单地理解 BIOS,它就是固化在主板上一个 ROM(只读存储器)芯片上的程序,主要保存计算机的基本输入/输出信息、系统设置信息、开机自检程和系统自启动程序,用来为 计算机提供最底层和最直接的硬件设置与控制。 也就是说,BIOS 是硬件与软件之间的接口,

  • 相对来说,我对Ajax还比较陌生,只是负责这个跨域调用。我们的网页上有一个文本框,用户将使用它来执行公司名称的搜索。通过单击文本框旁边的按钮,将请求Ajax调用。不幸的是,web服务位于一个单独的域中,所以这自然会引起问题。 以下是我为完成这项工作所做的最大努力。我还应该注意,这个调用的目的是以XML格式返回结果,这些结果将在请求的< code>success部分进行解析。 这是再次出现错误消息:

  • Google 400错误:“Web”客户端类型不允许无效的请求自定义方案URI 但是,在我的情况下,我已经在Firebase中创建了应用程序,但我仍然得到了错误。任何想法请...

  • 请求正文太大,超过了允许的最大限制。 我知道我可能需要削减json,但还有其他建议吗?(比如在某个地方增加消息大小?)

  • 问题内容: 我尝试使用连接器8.0.11将MySql数据库与Java连接。一切似乎都还可以,但是我有一个例外: 线程“主”中的异常java.sql.SQLNonTransientConnectionException: 不允许公共密钥检索 堆栈跟踪: 连接器管理器: 问题答案: 您应该将客户端选项添加到mysql- connector中,以允许客户端自动从服务器请求公共密钥。请注意,这可能允许恶意

  • 我尝试使用连接器8.0.11将MySQL数据库与Java连接起来。一切似乎都很好,但我得到了这个例外: 以下是我的连接管理器课程: