importer S3 Get Error

Hi all , I have problem with importer and disk use S3, after I upload .csv faile I get error
[2024-03-27 15:04:07] local.ERROR: Error executing "GetObject" on "https://BUCKETNAME.s3.ap-southeast-3.amazonaws.com//var/www/html/storage/app/livewire-tmp/z7pJT3wUCoPBCXnvTptbHmAQhWPFWn-metaYjJiLXRyYW5zYWN0aW9uLWl0ZW0taW1wb3J0ZXItZXhhbXBsZSAoMSkuY3N2-.csv"; AWS HTTP error: Client error: `GET https://BUCKETNAME.s3.ap-southeast-3.amazonaws.com//var/www/html/storage/app/livewire-tmp/z7pJT3wUCoPBCXnvTptbHmAQhWPFWn-metaYjJiLXRyYW5zYWN0aW9uLWl0ZW0taW1wb3J0ZXItZXhhbXBsZSAoMSkuY3N2-.csv` resulted in a `404 Not Found` response NotFound (client): 404 Not Found (Request-ID: 6F9S5C37KABFQHA1) - <?xml version="1.0" encoding="UTF-8"?>
[2024-03-27 15:04:07] local.ERROR: Error executing "GetObject" on "https://BUCKETNAME.s3.ap-southeast-3.amazonaws.com//var/www/html/storage/app/livewire-tmp/z7pJT3wUCoPBCXnvTptbHmAQhWPFWn-metaYjJiLXRyYW5zYWN0aW9uLWl0ZW0taW1wb3J0ZXItZXhhbXBsZSAoMSkuY3N2-.csv"; AWS HTTP error: Client error: `GET https://BUCKETNAME.s3.ap-southeast-3.amazonaws.com//var/www/html/storage/app/livewire-tmp/z7pJT3wUCoPBCXnvTptbHmAQhWPFWn-metaYjJiLXRyYW5zYWN0aW9uLWl0ZW0taW1wb3J0ZXItZXhhbXBsZSAoMSkuY3N2-.csv` resulted in a `404 Not Found` response NotFound (client): 404 Not Found (Request-ID: 6F9S5C37KABFQHA1) - <?xml version="1.0" encoding="UTF-8"?>
5 Replies
leoblanski
leoblanski3mo ago
Hey !! Any idea ? Getting the same error here. If I comment FILAMENT_FILESYSTEM_DISK from env, it works.
Dennis Koch
Dennis Koch3mo ago
In the error above I see double / in 3.amazonaws.com//. Not sure whether that's an issue though.
leoblanski
leoblanski3mo ago
It's strange... I'm uploading photos and videos with no problem to s3, but for some reason, it's not working with Importer. Error executing "GetObject" on "https://regalwings-public.s3.amazonaws.com//var/www/storage/app/livewire-tmp/SktuHD41H7BCaimeIATGEq7YXd7s08-metaZGF5c19jc3YuY3N2-.csv"; AWS HTTP error: Client error: GET https://regalwings-public.s3.amazonaws.com//var/www/storage/app/livewire-tmp/SktuHD41H7BCaimeIATGEq7YXd7s08-metaZGF5c19jc3YuY3N2-.csv resulted in a 404 Not Found omg, now I saw that's something related to s3 path. I didn't fix it yet... A lot of tries but it seems the path generated on TemporaryUploadedFile is wrong. I've tried to set both variables to s3 FILAMENT_FILESYSTEM_DISK=s3 FILESYSTEM_DISK=s3 I'm using s3 on FileUpload for example and it works like a charm, but with Importer is not working. If I remove FILAMENT_FILESYSTEM_DISK from my env, it works, but saving files in my local.
Jr.Pikong
Jr.Pikong2mo ago
Yes, that's right, as @Dennis Koch said, there was an error in the S3 bucket policy process. after I made some changes it worked. and you just need to setup FILAMENT_FILESYSTEM_DISK=s3
leoblanski
leoblanski2mo ago
Thank you @Jr.Pikong