plotly / plotly/plotly.R

plotly_IMAGE stopped working

未关闭
#2,312 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
R
星标
2.7k
派生
641
PR 合并指标
30 天内没有已合并 PR

描述

Hello,
I am not sure if the server is undergoing maintenance. Function plotly_IMAGE suddenly stopped working yesterday. It worked for like 6 or 7 graphs and now returns error [502].

BTW, as a side note, I really would like to have easier options to saving static plotly graphs as PNG. I spent so many hours with this, I tried Orca, Kaleido (which requires installing reticulate, miniconda etc), never made these work because of multiple installing problems, like my user has a space character and miniconda won't install. Anyways, multiple bugs in the process, to finally find the plotly_IMAGE function that somehow worked. I really feel like getting static images is an important feature for R, where many users are forced to used latex to report our works later. Let me know if I can help with this in any way.

The error is:

plotly_IMAGE(global_return_graph, format = 'png', out_file = file.path(savep$
# > Request failed [502]. Retrying in 1.6 seconds...
# > Request failed [502]. Retrying in 1.7 seconds...
# > Request failed [502]. Retrying in 3.9 seconds...
# > Request failed [502]. Retrying in 2.8 seconds...

The same code was working before and just stopped.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先使用 format='png' 和所示的 out_file 参数重现报告的 plotly_IMAGE 调用,确认 502 是否仍然存在。然后检查 plotly_IMAGE 入口点及其请求路径;完成的标准是确定并修复该故障,或记录外部图像服务不可用,并为静态 PNG 导出添加回归检查。

由索引模型根据 Issue 内容生成。

评估

技术栈
r
领域
data-visualization
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。