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

ConjureHTTPError报错如何解决?Palantir Foundry中遇404问题

解决Palantir Foundry调用Codex Hub接口出现CodexHub:SeriesNotFound的404错误

问题概述

在Palantir Foundry中执行hydraulic_transformation_temperature代码时,调用Codex Hub的computation/output接口返回404错误,错误标识为CodexHub:SeriesNotFound,涉及的Series ID为[(ac:a350)-(reg:9V-SHN)-(msn:385)-(acu:RSVTMPG:1)-(ch:96)]。完整报错栈如下:

Error
Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://core.skywise.com/codex-hub/api/v1/computation/output

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/vector_spark_module-5.594.0-py3.6.egg/vector/execution/execution.py", line 344, in _evaluate
return eval(compile(code, filename, 'eval'), namespace)  # pylint: disable=eval-used
File "hydraulic_transformation_temperature", line 1, in 
File "hydraulic_transformation_temperature", line 33, in hydraulic_transformation_temperature
File "/opt/conda/lib/python3.9/site-packages/foundryts/core/collection.py", line 431, in to_dataframe
return fts.session.createDataFrame(rdd, self._spark_data_type(), verifySchema=False)
File "/opt/conda/lib/python3.9/site-packages/foundryts/core/collection.py", line 641, in _spark_data_type
for column, column_type in zip(self.columns(), self.types())])
File "/opt/conda/lib/python3.9/site-packages/foundryts/core/collection.py", line 361, in types
child_types = self._node_schema()[1]
File "/opt/conda/lib/python3.9/site-packages/foundryts/core/collection.py", line 626, in _node_schema
unique_columns_and_types = [
File "/opt/conda/lib/python3.9/site-packages/foundryts/core/collection.py", line 631, in 
for column, column_type in zip(node.columns(), node.types())
File "/opt/conda/lib/python3.9/site-packages/foundryts/nodes/node.py", line 173, in types
return self._single_child_getattr('types')()
File "/opt/conda/lib/python3.9/site-packages/foundryts/nodes/node.py", line 173, in types
return self._single_child_getattr('types')()
File "/opt/conda/lib/python3.9/site-packages/foundryts/nodes/transformations.py", line 495, in types
return _types(self)
File "/opt/conda/lib/python3.9/site-packages/foundryts/nodes/transformations.py", line 393, in _types
if is_enum_node(node):
File "/opt/conda/lib/python3.9/site-packages/foundryts/_utils/codex_outputs.py", line 6, in is_enum_node
node_output = node.output_type()
File "/opt/conda/lib/python3.9/site-packages/foundryts/nodes/node.py", line 133, in output_type
self._output_type = foundryts.FoundryTS()._output_type(self)
File "/opt/conda/lib/python3.9/site-packages/foundryts/core/_foundryts.py", line 241, in _output_type
return self.hub.compute_output(
File "/opt/conda/lib/python3.9/site-packages/codex_hub_api/_impl.py", line 14744, in compute_output
_response = self._request( # type: ignore
File "/opt/conda/lib/python3.9/site-packages/conjure_python_client/_http/requests_client.py", line 106, in _request
raise_from(ConjureHTTPError(e), e)
File "/opt/conda/lib/python3.9/site-packages/future/utils/__init__.py", line 406, in raise_from
exec(execstr, myglobals, mylocals)
File "", line 1, in 
conjure_python_client._http.requests_client.ConjureHTTPError: 404 Client Error: Not Found for url: https://core.skywise.com/codex-hub/api/v1/computation/output. ErrorCode: 'NOT_FOUND'. ErrorName: 'CodexHub:SeriesNotFound'. ErrorInstanceId: '65efb952-229c-4012-8091-4c1731aa240e'. TraceId: 'f6edb280f9bafb00'. Parameters: {'seriesIds': '[(ac:a350)-(reg:9V-SHN)-(msn:385)-(acu:RSVTMPG:1)-(ch:96)]'}

解决思路

  • 验证Series ID有效性

    • 通过Foundry TS界面或Codex Hub查询工具,确认该Series ID是否存在,检查机型、注册号、序列号、ACU通道等字段拼写是否正确,格式是否符合要求。
    • 确认该Series是否已完成创建与数据写入,避免引用未初始化的Series。
  • 检查权限与环境配置

    • 确认执行代码的Foundry账号是否拥有该Series的访问权限,包括数据源读取权限和Codex Hub资源访问权限。
    • 核对接口调用的环境(测试/生产)是否与Series所在环境一致,避免跨环境调用不存在的资源。
  • 排查数据同步与索引状态

    • 如果该Series从外部数据源同步而来,检查同步任务日志,确认数据是否成功同步到Codex Hub。
    • 查看Codex Hub索引状态,确认该Series是否已完成索引,未索引的Series无法被接口识别。
  • 验证接口调用参数

    • 检查代码中传递给compute_output方法的参数格式,确保seriesIds的结构、分隔符与Codex Hub要求完全匹配。
    • 手动构造HTTP请求调用该接口,传入相同的seriesId,验证是否能正常返回结果,排除代码封装层的问题。
  • 联系技术支持

    • 若以上步骤均无法解决问题,携带报错中的ErrorInstanceId和TraceId联系Palantir或Codex Hub技术支持团队,排查后端索引异常或接口逻辑问题。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.29 06:55:13