0

APIエンドポイント(golangで実行中)から取得したディスカバリドキュメントを使用してJavaクライアントライブラリを生成しようとしましたが、GAE APIからendpointscfgを使用してJavaクライアントライブラリを生成するときにHTTP 500エラーが発生しました

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: 

私は同じコマンドを使用しようとし、非常に単純なプログラムのために生成し、errroなしで実行します。発見文書の構文や構造から、私は何かが間違っていたのを見ることができません。皆さんは何か考えていますか?

答えて

0

この部分をディスカバリ文書の「schema」セクションから削除しても機能します。

"オーダー":{ "ID": "順序"、 "タイプ": "オブジェクト"、 "プロパティ":{ "addressArea":{ "タイプ": "文字列" } "addressDistrict":{ "タイプ": "文字列" }、 "addressField1":{ "タイプ": "文字列" }、 "addressField2":{ "タイプ": "文字列" } 、 "addressField3":{ "type": "string" }、 "addressField4":{ "タイプ": "文字列" }、 "amountPayable":{ "タイプ": "整数"、 "フォーマット": "INT32" }、 "完了":{ "タイプ ": "ブール"} 、 "createdAt":{ "タイプ": "string" は、 "フォーマット": "日時" }、 "deliveryDate":{ "タイプ":" 列" " format ":" date-time " }、 " deliveryTimeslot ":{ "タイプ ":"整数 "、 "フォーマット ":" int32 " }、 "ID":{ "タイプ": "文字列" }、 "pickupDate":{ "タイプ": "string" は、 "フォーマット": "日時" }、 " pickupDeliveryInstruction ":{ "タイプ": "文字列" }、 "pickupTimeslot":{ "タイプ": "整数"、 "フォーマット": "INT32" }、 "referenceNumber":{ " タイプ":"文字列 " }、 "ステータス ":{ "タイプ ":"整数 "、 "フォーマット ":" int32 " }、 " - ":{ "type": "string" } } }、

関連する問題