Cannot import assets
Everything was working just fine a week ago but now I cannot import assets from the URL that comes from Google Sheet. Any ideas?
Google Sheets: Starting processing of node #1.Show detail | 3/19/2024 10:26 AM
-- | --
info | ↳ Google Sheets: Match existing element with data {"title":"Bandymas"}. | 3/19/2024 10:26 AM
info | ↳ Google Sheets: Search for existing asset with query {"status":null,"folderId":2,"kind":["image"],"limit":1,"filename":"Bandymas.jpg","includeSubfolders":true} | 3/19/2024 10:26 AM
info | ↳ Google Sheets: Found 0 existing assets: [] | 3/19/2024 10:26 AM
info | ↳ Google Sheets: Fetching remote image https://ae01.alicdn.com/kf/Sd83df094381a421bb823a015de6b05af5.jpg - Bandymas.jpg | 3/19/2024 10:26 AM
info | ↳ Google Sheets: Creating asset with content {"tempFilePath":"\/home\/telefonai\/public_html\/storage\/runtime\/temp\/feedme\/Bandymas.jpg","filename":"Bandymas.jpg","newFolderId":2,"volumeId":2,"avoidFilenameConflicts":true,"scenario":"create","conflict":"replace"} | 3/19/2024 10:26 AM
error | ↳ Google Sheets: discount_picture - Asset error: https://ae01.alicdn.com/kf/Sd83df094381a421bb823a015de6b05af5.jpg - The file “Bandymas.jpg” does not appear to be an image..
Google Sheets: Starting processing of node #1.[Show detail](https://telefonai.eu/admin/feed-me/logs#) 3/19/2024 10:26 AM
info ↳ Google Sheets: Match existing element with data {"title":"Bandymas"}. 3/19/2024 10:26 AM
info ↳ Google Sheets: Search for existing asset with query {"status":null,"folderId":2,"kind":["image"],"limit":1,"filename":"Bandymas.jpg","includeSubfolders":true} 3/19/2024 10:26 AM
info ↳ Google Sheets: Found 0 existing assets: [] 3/19/2024 10:26 AM
info ↳ Google Sheets: Fetching remote image https://ae01.alicdn.com/kf/Sd83df094381a421bb823a015de6b05af5.jpg - Bandymas.jpg 3/19/2024 10:26 AM
info ↳ Google Sheets: Creating asset with content {"tempFilePath":"\/home\/telefonai\/public_html\/storage\/runtime\/temp\/feedme\/Bandymas.jpg","filename":"Bandymas.jpg","newFolderId":2,"volumeId":2,"avoidFilenameConflicts":true,"scenario":"create","conflict":"replace"} 3/19/2024 10:26 AM
error ↳ Google Sheets: discount_picture - Asset error: https://ae01.alicdn.com/kf/Sd83df094381a421bb823a015de6b05af5.jpg - The file “Bandymas.jpg” does not appear to be an image..
PHP version | 8.1.27 Linux 3.10.0-1160.108.1.el7.x86_64 MySQL 8.0.36 GD 8.1.27 Craft Pro 4.8.3 Feed Me | 5.4.0
Hi, thanks for reaching out! I can't replicate this using the file URL and name from the error you posted. Are you still experiencing this issue?
I'm currently experiencing the same issue with Feed Me 6.8.0.
In our case the images are on an environment with basic-auth so I've added the necessary config to feed-me.php:
'clientOptions' => [
'headers' => [
'User-Agent' => 'Craft FeedMe',
'Authorization' => 'Basic ***'
]
],
But that didn't solve the issue. When visiting an image URL it just shows the image. So I'm not sure whats causing the issue.
I've just had this happen to me. Picked up a project after leaving it alone for a couple of months. Previously it had imported all the images flawlessly but now it says:
figure - Asset error: https://mydomain.test/assets/images/content/articles/filename.jpg - The file “filename.jpg” does not appear to be an image.
I'm on Valet (4.8.7) on MacOS 15.5. Latest Craft CMS (5.7.8.2)
Hi there,
I've also run into this issue and started getting a The file “filename.jpg” does not appear to be an image. error all of a sudden.
I downgraded Feed Me from 6.8.0 to 6.7.0 and the images started imported correctly again.
I’m encountering the same (or a very similar) issue. When trying to import images with Feed Me, I get this error for every image:
The file "filename.jpg" does not appear to be an image.
In my case, the images are stored locally inside another DDEV project. If I configure Feed Me to pull images from a remote site, it works most of the time. Though around 5–10% of assets still trigger the same error.
I’ve already tried downgrading to Feed Me 6.7.0, but that didn’t solve it for me.
Are there any other configuration changes I could try?