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.