2017-08-16 64 views
0

我試圖通過Synology API更改攝像頭通知時間表。Synology API SetCameraSchedule - GET 414 Request-URI太大| POST 405不允許

GET請求返回414請求URI太大 POST請求返回405不允許

這似乎是不可能的GET請求來做到這一點。請幫我解決POST請求!

下面是這個方法的文檔: 頁241 SetCameraSchedule https://usdl.synology.com/download/Document/DeveloperGuide/Surveillance_Station_Web_API_v2.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() 

回答

0

我修改我的Synology Nginx的配置(通過SSH訪問)

解決這個問題,我創建一個新的文件/etc/nginx/conf.d/http.size.conf

並添加以下內容:

client_header_buffer_size 64k; 
large_client_header_buffers 4 64k; 

然後重新啓動的nginx服務與sudo synoservicectl --restart nginx

我正在開發一個Python的庫來與Surveillance Stat交互ion API如果你有興趣:here

+0

謝謝,我會試試看。你的圖書館是否需要修改nginx配置? – CooleRnax

+0

您需要的唯一修改是針對由於URI太大而導致的計劃集 – k20human