Streamlit in Snowflake 故障排除¶
在使用 Streamlit in Snowflake 时,以下场景可以帮助您解决可能发生的问题。
您不能加载 Streamlit 应用程序¶
在 Streamlit in Snowflake 中运行的每个 Streamlit 应用程序都使用唯一的子域。
Ensure that *.snowflakeapp.cn and *.snowflake.cn are on the allowlist in your network (including content filtering systems), and
can connect to Snowflake. When these domains are on the allowlist, your apps can communicate with Snowflake servers without any restrictions.
However, in some cases adding these domains may not be sufficient due to network policies blocking subpaths under them. If this occurs,
contact your network administrator.
此外,为防止连接到 Snowflake 后端出现任何问题,请确保网络配置中未阻止 WebSockets。
错误 |
Could not reload streamlit files.
Error: 092806 (P0002): The specified Streamlit was not found.
|
|---|---|
原因 |
Snowflake WebSocket 连接无法连接到与应用程序关联的端点。 |
解决方案 |
Add *.snowflakeapp.cn to the allowlist on the organization's firewall configuration. |
您无法查看数据或更改数据库¶
您可能无法查看数据或更改数据库、仓库或角色,因为 Streamlit 应用程序使用所有者权限运行,这意味着它们在运行的时候会使用所有者的权限,而不是调用者的权限。Streamlit 应用程序使用在其中创建了 Streamlit in Snowflake 应用程序的数据库和架构,而非调用者当前使用的数据库和架构。
有关更多信息,请参阅 了解所有者的权限和 Streamlit in Snowflake 应用程序。
Streamlit 库功能不起作用¶
确保使用 Streamlit in Snowflake 支持的 Streamlit 库版本和功能。有关更多信息,请参阅 受支持的 Streamlit 库版本 和 不支持的 Streamlit 功能。
要询问有关开源 Streamlit 库中功能的问题,请参阅 Streamlit 社区论坛 (https://discuss.streamlit.io/)。