[modified] gallery api catch error