You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

调用Amadeus机场API出现503错误,咨询是否为API宕机所致

问题:Amadeus机场API调用返回503错误

我正在使用Amadeus Python 3客户端,调用以下方法时出现503错误:

response =  amadeus.reference_data.locations.airports.get(
    longitude=long,
    latitude=lat)

对应的堆栈跟踪信息如下:

File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/amadeus/reference_data/locations/_airports.py", line 25, in get
    return self.client.get(
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/amadeus/mixins/http.py", line 40, in get
    return self.request('GET', path, params)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/amadeus/mixins/http.py", line 110, in request
    return self._unauthenticated_request(
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/amadeus/mixins/http.py", line 126, in _unauthenticated_request
    return self.__execute(request)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/amadeus/mixins/http.py", line 152, in __execute
    response._detect_error(self)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/amadeus/mixins/parser.py", line 16, in _detect_error
    self.__raise_error(error, client)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/amadeus/mixins/parser.py", line 67, in __raise_error
    raise error
amadeus.client.errors.ServerError: [503]

想咨询当前Amadeus机场API是否处于宕机状态?


排查建议
  • 503错误属于服务端临时不可用,大概率是Amadeus API端的临时故障、维护或流量峰值导致。
  • 先确认本地网络连接正常,排除网络波动问题。
  • 间隔几分钟重复调用API,看是否能恢复正常。
  • 若多次尝试仍失败,可通过Amadeus官方渠道查看服务状态,确认是否有全局故障或维护通知。
  • 同时检查请求参数:确保longitude和latitude的取值在有效范围(经度-180到180,纬度-90到90),格式符合API要求。

内容的提问来源于stack exchange,提问作者Roberto Mora

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 10:05:23