Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Error in 'saveplotlyfig'

when I get a figure from ‘plotlygetfile’ and I want to save it as a static one through ‘saveplotlyfig’, there is always a problem in it. Below is the screenshot for that problem:

Actually ,I thought such problem is originated from ‘plotlygenimage.m’, in which these two sentences:
url = [domain, ‘/apigenimage/’];
[response_string, extras] = urlread2(url, ‘Post’, payload, headers,‘CAST_OUTPUT’, ‘False’);
may not return response_string correctly. However I do not know how to deal with it.

I would be so aprreciated if anyone could help me look through it.