# Transform failed with error code 525: plotly.js error

**URL:** <https://community.plotly.com/t/transform-failed-with-error-code-525-plotly-js-error/72578>\
**Category:** Plotly.NET\
**Tags:** question\
**Created:** [February 10, 2023, 10:07pm UTC](https://community.plotly.com/t/transform-failed-with-error-code-525-plotly-js-error/72578 "2023-02-10T22:07:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frank23](https://avatars.discourse-cdn.com/v4/letter/f/8e7dd6/32.png) [@frank23](https://community.plotly.com/u/frank23)\
**Post date:** [February 10, 2023, 10:07pm UTC](https://community.plotly.com/t/transform-failed-with-error-code-525-plotly-js-error/72578/1 "2023-02-10T22:07:50Z")

</div>

I have a docker container running R and python.

It pulls data and generates plotly plots for n companies

```auto
plot1 = function(company){
get data
fig = plotly
fig
}

```

I loop through a list of ~ 50 companies, call this `plot1` function, and the save it using `kaleido`, and `save_image(plot1(company), file = f )`

It works for the first 20 companies, and then on the 21st, I receive the error: `Transform failed with error code 525: plotly.js error`

I ran the container 3x, and each time it failed at the same location/file.

The `plot1()` result is a standard plotly figure when run from my local source

I only get the error when running in the container, as when I run the source code, it saves without issue.

Are there any suggestions how to overcome this?
