【问题标题】:Error while calling Sabre BargainFinderMax REST API — ERR.2SG.PROVIDER_TIMEOUT调用 Sabre BargainFinderMax REST API 时出错 — ERR.2SG.PROVIDER_TIMEOUT
【发布时间】:2018-09-08 18:35:34
【问题描述】:

我在为以下请求调用 Sabre BargainFinderMax REST API 时偶尔出现错误:

{  
    "OTA_AirLowFareSearchRQ":{  
        "OriginDestinationInformation":[  
            {  
                "DepartureDateTime":"2018-09-22T00:00:00",
                "DestinationLocation":{  
                    "LocationCode":"DEL"
                },
                "OriginLocation":{  
                    "LocationCode":"BOM"
                },
                "RPH":"0"
            },
            {  
                "DepartureDateTime":"2018-09-29T00:00:00",
                "DestinationLocation":{  
                    "LocationCode":"BOM"
                },
                "OriginLocation":{  
                    "LocationCode":"DEL"
                },
                "RPH":"1"
            }
        ],
        "TravelPreferences":{  
            "ValidInterlineTicket":true,
            "CabinPref":[  
                {  
                    "Cabin":"Y",
                    "PreferLevel":"Preferred"
                }
            ]
        },
        "POS":{  
            "Source":[  
                {  
                    "PseudoCityCode":"J6UJ",
                    "RequestorID":{  
                        "CompanyName":{  
                            "Code":"TN"
                        },
                        "ID":"REQ.ID",
                        "Type":"0.AAA.X"
                    }
                }
            ]
        },
        "TPA_Extensions":{  
            "IntelliSellTransaction":{  
                "RequestType":{  
                    "Name":"50ITINS"
                }
            }
        },
        "TravelerInfoSummary":{  
            "AirTravelerAvail":[  
                {  
                    "PassengerTypeQuantity":[  
                        {  
                            "Code":"ADT",
                            "Quantity":1
                        }
                    ]
                }
            ],
            "PriceRequestInformation":{  
                "CurrencyCode":"USD"
            }
        }
    }
}

带有错误代码的响应 - ERR.2SG.PROVIDER_TIMEOUT

{  
    "status":"NotProcessed",
    "type":"Transport",
    "errorCode":"ERR.2SG.PROVIDER_TIMEOUT",
    "timeStamp":"2018-09-08T11:09:38.819-05:00",
    "message":"Connection error"
}

带有错误代码的响应 - ERR.2SG.SEC.MISSING_CREDENTIALS

{  
    "status":"NotProcessed",
    "type":"Validation",
    "errorCode":"ERR.2SG.SEC.MISSING_CREDENTIALS",
    "timeStamp":"2018-09-08T11:26:06.919-05:00",
    "message":"Authentication data is missing"
}

带有错误代码的响应 - WARN.RAF.APPLICATION

{  
    "status":"Complete",
    "reportingSystem":"RAF",
    "timeStamp":"2018-09-08T19:03:26+00:00",
    "type":"Application",
    "errorCode":"WARN.RAF.APPLICATION",
    "instance":"raf-darhlc006.sabre.com-8080",
    "message":"{\"OTA_AirLowFareSearchRS\":{\"PricedItinCount\":0,\"BrandedOneWayItinCount\":0,\"SimpleOneWayItinCount\":0,\"DepartedItinCount\":0,\"SoldOutItinCount\":0,\"AvailableItinCount\":0,\"Version\":\"4.2.0\",\"Errors\":{\"Error\":[{\"Type\":\"SCHEDULES\",\"ShortText\":\"DSF server returned an error: unknown BRD airport=BOM\",\"Code\":\"PROCESS\",\"content\":\"\"},{\"Type\":\"SCHEDULES\",\"ShortText\":\"DSF server returned an error: unknown OFF airport=BOM\",\"Code\":\"PROCESS\",\"content\":\"\"},{\"Type\":\"IF2\",\"ShortText\":\"No complete journey can be built in IF2/ADVJR1.\",\"Code\":\"PROCESS\",\"content\":\"\"},{\"Type\":\"WORKERTHREAD\",\"ShortText\":\"4220224579781953781\",\"Code\":\"TRANSACTIONID\",\"MessageClass\":\"I\",\"content\":\"\"},{\"Type\":\"SERVER\",\"ShortText\":\"27033\",\"Code\":\"ASECT2LAPC00015.IDM.SGDCPROD.SABRE.COM\",\"MessageClass\":\"I\",\"content\":\"\"},{\"Type\":\"DRE\",\"ShortText\":\"21728\",\"Code\":\"RULEID\",\"MessageClass\":\"I\",\"content\":\"\"},{\"Type\":\"DEFAULT\",\"ShortText\":\"25238\",\"Code\":\"RULEID\",\"MessageClass\":\"I\",\"content\":\"\"},{\"Type\":\"SCHEDULES\",\"ShortText\":\"NO FLIGHTS FOUND FOR BOM-DEL\",\"Code\":\"MSG\",\"MessageClass\":\"I\",\"content\":\"\"},{\"Type\":\"SCHEDULES\",\"ShortText\":\"NO FLIGHTS FOUND FOR DEL-BOM\",\"Code\":\"MSG\",\"MessageClass\":\"I\",\"content\":\"\"},{\"Type\":\"SCHEDULES\",\"ShortText\":\"NO FLIGHT SCHEDULES FOR QUALIFIERS USED\",\"Code\":\"MSG\",\"MessageClass\":\"I\",\"content\":\"\"},{\"Type\":\"ERR\",\"ShortText\":\"Error during Processing\",\"Code\":\"ERR\",\"content\":\"\"}]}},\"Links\":[{\"rel\":\"self\",\"href\":\"https://api-crt.cert.havail.sabre.com/v4.2.0/shop/flights?mode=live\"},{\"rel\":\"linkTemplate\",\"href\":\"https://api-crt.cert.havail.sabre.com//shop/flights?mode=&limit=&offset=&enabletagging=\"}]}"
}

没有错误的响应

{  
    "OTA_AirLowFareSearchRS":{  
        "PricedItinCount":50,
        "BrandedOneWayItinCount":0,
        "SimpleOneWayItinCount":0,
        "DepartedItinCount":0,
        "SoldOutItinCount":0,
        "AvailableItinCount":0,
        "Version":"4.2.0",
        "Success":{  

        },
        "Warnings":{...},
        "PricedItineraries":{...},
        "TPA_Extensions":{...}
    },
    "Links":[...]
}

该网站目前正在使用 Sabre 测试环境进行 REST API 调用。

API 有时返回上面提到的错误代码可能是什么原因? 迁移到生产环境会消除这些错误吗?

感谢任何解决上述问题的帮助。

【问题讨论】:

    标签: sabre


    【解决方案1】:

    虽然生产环境的错误会明显减少,但可以找到这些错误,您应该在应用程序中考虑这些错误。

    • ERR.2SG.PROVIDER_TIMEOUT 是一个超时响应,也可能在生产中发生。这在测试环境中更为常见。

    • ERR.2SG.SEC.MISSING_CREDENTIALS 可以避免,因为您缺少会话详细信息。

    • WARN.RAF.APPLICATION 表示存在验证错误或请求中的某些内容无效。

    【讨论】:

      猜你喜欢
      • 2022-07-01
      • 1970-01-01
      • 1970-01-01
      • 2022-09-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多