[英]Not able to upload files from GAE project to Google cloud Storage using GCS Client library+java
[英]HTTP 500 error when generating Java Client Library using endpointscfg from a GAE API
我嘗試使用從我的API端點(在golang上運行)檢索的發現文檔生成Java客戶端庫,但是失敗並顯示以下消息。
endpointscfg.py gen_client_lib java happylaundry.rest.discovery
Traceback (most recent call last):
File "//Users/lorenz/go/go_appengine/endpointscfg.py", line 133, in <module>
run_file(__file__, globals())
File "//Users/lorenz/go/go_appengine/endpointscfg.py", line 129, in run_file
execfile(_PATHS.script_file(script_name), globals_)
File "/Users/lorenz/go/go_appengine/google/appengine/tools/endpointscfg.py", line 561, in <module>
main(sys.argv)
File "/Users/lorenz/go/go_appengine/google/appengine/tools/endpointscfg.py", line 557, in main
args.callback(args)
File "/Users/lorenz/go/go_appengine/google/appengine/tools/endpointscfg.py", line 458, in _GenClientLibCallback
args.build_system)
File "/Users/lorenz/go/go_appengine/google/appengine/tools/endpointscfg.py", line 335, in _GenClientLib
build_system, client_name)
File "/Users/lorenz/go/go_appengine/google/appengine/tools/endpointscfg.py", line 366, in _GenClientLibFromContents
raise ServerRequestException(error)
__main__.ServerRequestException: HTTP 500 (Internal Server Error) error when communicating with URL: https://google-api-client-libraries.appspot.com/generate. Response:
我嘗試使用相同的命令並為一個非常簡單的程序生成了該程序,並且該程序運行時沒有錯誤。 從發現文檔的語法或結構來看,我看不到任何錯誤。 你們有什么主意嗎?
我從發現文檔的“模式”部分中刪除了該部分,並且可以正常工作。
“ Order”:{“ id”:“ Order”,“ type”:“ object”,“ properties”:{“ addressArea”:{“ type”:“ string”},“ addressDistrict”:{“ type”:“ string“},” addressField1“:{” type“:” string“},” addressField2“:{” type“:” string“},” addressField3“:{” type“:” string“},” addressField4“: {“ type”:“ string”},“ amountPayable”:{“ type”:“ integer”,“ format”:“ int32”},“ completed”:{“ type”:“ boolean”},“ createdAt”: {“ type”:“ string”,“ format”:“ date-time”},“ deliveryDate”:{“ type”:“ string”,“ format”:“ date-time”},“ deliveryTimeslot”:{“ type“:” integer“,” format“:” int32“},” id“:{” type“:” string“},” pickupDate“:{” type“:” string“,” format“:” date- time“},” pickupDeliveryInstruction“:{” type“:” string“},” pickupTimeslot“:{” type“:” integer“,” format“:” int32“},” referenceNumber“:{” type“:” string“},” status“:{” type“:” integer“,” format“:” int32“},” -“:{” type“:” string“}}},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.