functions-samples
functions-samples copied to clipboard
generateThumbnail produces toxic image
How to reproduce these conditions
I'm using the sample code as is: It builds and uploads and runs. The thumb_ image can't be downloaded and just 'hangs' in the control panel. I've tried .jpg and .png, small and large. All produce the same failure. Logs say it ran 'ok'. About 6 seconds for a 1 meg image.
Running latest software:
"engines": {
"node": "10"
},
"dependencies": {
"child-process-promise": "^2.2.1",
"firebase-admin": "^8.6.0",
"firebase-functions": "^3.3.0"
}
firebase-tools are current.
Here is what the console looks like after an upload. The original image uploads fine. The generated thumb never presents an image or a link (though its name and size are correct)
@stocksp thanks for filing! I believe this is actually an issue in the Firebase console, not in the function sample. To check if it is a console bug, can you please try downloading the thumbnail with one of the client SDKs and see if that works?
(for Googlers looking at this, a similar internal bug is 145671394)
@jhuleatt thanks for getting back to me ... I've moved on and just did the conversion on the client (Flutter) (much faster of course) and they appear in the storage console when I send them there!!
I tried this one and had same issue. Any solution?
@stocksp thanks for filing! I believe this is actually an issue in the Firebase console, not in the function sample. To check if it is a console bug, can you please try downloading the thumbnail with one of the client SDKs and see if that works?
(for Googlers looking at this, a similar internal bug is 145671394)
@stocksp I was able to download the new thumb generated via the client SDK. It appears @jhuleatt may be right in thinking it is a console bug.
thanks for confirming @tbone849. I have an idea for a hack in the sample that may let us get around the console bug
thanks for confirming @tbone849. I have an idea for a hack in the sample that may let us get around the console bug
hey. any news regarding that issue? i have the same problem.