getImage() Bad Response 500 error

Looking for alternatives/solutions to an issue that seems to have been lingering around for a bit.

I’m trying to make a plot and then save a copy of the plot to a google cloud bucket. I keep getting this error: Bad response status code 500 from the index.js within plotly (line 237:25). I’ve seen documentation for a 301 error issue that gets fixed by updating the host name you use during authentication, but that doesn’t fix this issue. Looking for any advice, work-arounds, etc.

Thanks!

code:

error: