craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
288 stars 139 forks source link

Error: GoogleSheet.php - array_shift(): Argument #1 ($array) must be of type array, null given #1429

Closed jasonmckinney66 closed 5 months ago

jasonmckinney66 commented 5 months ago

Description

Importing from Google Sheets with header and single row of simple data. FeedMe connects but throws error: Screenshot 2024-04-12 at 4 13 02 PM

Steps to reproduce

  1. Verified url format and key are working via Google Workspace Explorer
  2. Added url with key to FeedMe.
  3. Feed looks like: https://sheets.googleapis.com/v4/spreadsheets/1r4XVBK54osTdyyZedPcLlAb_7LFnyphEo1IoEYRnP7s?ranges='2022'&key=AIzaSyCXuTJxsI-t7IzLwcCrPsnjYT1qellXXXX

Additional info

i-just commented 5 months ago

Hi, thanks for reaching out! I believe your feed URL is not quite right. I have tried the following 2 examples:

The response from the Google Sheets URL has to contain the “values” key. Something along the lines of:

Screenshot 2024-05-02 at 13 48 56

I hope this helps!

I will close this now, but please don’t hesitate to get in touch if you run into any further problems!