plotly / plotly/plotly.R

plotly_IMAGE stopped working

Offen
#2,312 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
R
Sterne
2.7k
Forks
641
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, den gemeldeten plotly_IMAGE-Aufruf mit format='png' und dem angegebenen out_file-Argument nachzustellen und zu bestätigen, ob der 502-Fehler weiterhin auftritt. Untersuche anschließend den plotly_IMAGE-Einstiegspunkt und seinen Anfragepfad; abgeschlossen ist die Aufgabe, wenn der Fehler identifiziert und behoben wurde oder dokumentiert ist, dass der externe Bilddienst nicht verfügbar ist, einschließlich einer Regressionsprüfung für den statischen PNG-Export.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
r
Bereich
data-visualization
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.