libvips / php-vips

php binding for libvips
MIT License
615 stars 25 forks source link

502 Bad Gateway Error after upgrade #180

Closed johnvoncolln closed 1 year ago

johnvoncolln commented 1 year ago

This just started happening intermittently after I upgraded the production server to jcupitt/vips 2.1.1

After a user uploads an image:

$rawFile = Storage::disk('private')->putFileAs('', $request->file, $name);
$image = VipsImage::newFromFile(Storage::disk('private')->path($rawFile));

I'm logging right after this and when I get the 502 error, It doesn't hit the log.

I can refresh the page and half the time it will work, half the time 502 error.

Any ideas? Any other means of debugging?

jcupitt commented 1 year ago

Hi @johnvoncolln,

libvips has no built-in networking code, so I'd guess the problem is in Storage::

johnvoncolln commented 1 year ago

Hmm ok, I'll dive deeper into that area - thanks!

goldmerc commented 1 year ago

I'm having the same issue after upgrading to jcupitt/vips 2.1.1.

@johnvoncolln Did you ever get to the bottom of this?

Thanks

johnvoncolln commented 1 year ago

@goldmerc I'm sorry I don't remember what I did. I've had a lot of grief getting vips to work on my local environment, but I eventually get it worked out. I'm using Laravel Valet, so I want to say this issue was there. I think I installed the new version and maybe that did the trick...