Snowpipe REST API引发HTTP错误500

时间:2019-10-14 22:43:07

标签: snowflake-data-warehouse

(代表雪花用户提交...)


我正在使用Snowpipe REST端点从为GCS(Google Cloud Storage)创建的外部阶段加载文件。当我尝试调用Snowpipe加载文件时。通过邮递员调用时,出现以下错误响应。

<title>Error 500 Internal Server Error</title>
</head>
<body>
<h2>HTTP ERROR 500</h2>
<p>Problem accessing /v1/data/pipes/<pipe>/insertFiles. Reason:

<pre> Internal Server Error</pre>

我也在使用Java客户端执行相同操作,并且由于相同的原因也失败了

[main] WARN net.snowflake.ingest.connection.ServiceResponseHandler - Exceptional Status Code found in unmarshallInsert Response - 500
[main] ERROR net.snowflake.ingest.connection.ServiceResponseHandler - Status code 500 found in response from service

HTTP Status: 500
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 Internal Server Error</title>
</head>

我自己创建表/架构并调用REST API。发现相同的事情对与我在做相同事情的其他用户有用。这是完全奇怪的。你能帮忙吗?


有什么建议吗?谢谢!

1 个答案:

答案 0 :(得分:1)

根据一些研究,我建议:

  1. 查看查询的“复制历史记录”报告以获取更多信息found here on how,如果可以,请分享。
  2. 确保用户/角色具有what you were invoking on的权限。
  3. 管道的状态如何?

Snowpipe故障排除参考会有所帮助,但很有可能该用户角色没有运行查询的权限。