我在 GCP 上有一個運行超過 18 個月的云函數。一周前突然停止工作。代碼import googleapiclient.discovery adminDirectoryService = googleapiclient.discovery.build('admin', 'directory_v1', credentials = gsuiteCredentials, cache_discovery=False)result = adminDirectoryService.users().watch(body=watchBody, projection=projection, event=eventType, maxResults=1, customer=gSuiteCutomerId, viewType=viewType).execute() 例外情況:result = adminDirectoryService.users().watch(body=watchBody, projection=projection, event=eventType, maxResults=1, customer=gSuiteCutomerId, viewType=viewType).execute()File "/env/lib/python3.7/site-packages/google_api_python_client-1.7.8-py3.7.egg/googleapiclient/discovery.py", line 723, in method raise TypeError('Got an unexpected keyword argument "%s"' % name)TypeError: Got an unexpected keyword argument "projection"我不知道是什么導致了這個問題。我檢查了文檔,它清楚地表明了該projection論點的存在。還有其他人遇到這個問題嗎?有什么建議么?
Google Admin Directory SDK 中的用戶監視功能突然因參數投影錯誤而引發異常
慕婉清6462132
2023-07-05 15:50:35