getplotlyfig() Error

未關閉
#480 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
matlab

研究方向

使用 Plotly MATLAB 2.2.5,透過 getplotlyfig('userXYZ','80') 重現此失敗。從 response_handler(第 6 行)開始,接著追蹤回應經過 plotlygetfile(第 26 行)、plotlyfig/download(第 410 行)和 getplotlyfig(第 25 行)的流程。完成的標準是,擷取現有圖形時不再引發缺少 Content_Type 欄位的錯誤。

由索引模型根據 Issue 內容生成。

描述

Hi. I am using the latest Plotly MATLAB release (2.2.5). I am trying to retrieve a figure from my account, using getplotlyfig('userXYZ','80'). I am passing the number of the figure as a string (as shown in the user guide examples). Uploading new plotly graphs works as expected, however, when trying to retrieve graphs I am receiving the following error:

> Reference to non-existent field 'Content_Type'.
> Error in response_handler (line 6)
>         if (strcmp(extras.allHeaders.Content_Type, 'image/jpeg') || ...
> Error in plotlygetfile (line 26)
>     response_handler(response_string, extras);
> Error in plotlyfig/download (line 410)
>             plotlyfig = plotlygetfile(file_owner, file_id);
> Error in getplotlyfig (line 25)
> p.download(file_owner, file_id);

Can somebody help resolve this please?

主要語言
MATLAB
星號
414
分支
166
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

plotly/plotly_matlab 的其他 Issue

查看 plotly/plotly_matlab 的全部 Issue

相似的 Issue

更多 MATLAB Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。