繁体   English   中英

从GAE API使用endpointscfg生成Java客户端库时出现HTTP 500错误

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM