Closed michaeloboyle closed 9 years ago
Reduced the sheet to 100 rows to see if size was causing a timeout.
Same error. Size, in this case at least, does not matter.
Very strange. I'm looking into it.
I don't think this would cause the error we're seeing, but it's worth noting that your URL looks incorrect if you want to get the JSON feed from that spreadsheet (that's just the link the web UI).
JSON feed links from Google spreadsheets look something like https://spreadsheets.google.com/feeds/list/somerandomtoken/1/public/values?alt=json
. You can check the Google Apps documentation for full details.
I just reproduced the error by failing to require open-uri
. Be sure to include a require "open-uri"
in your seeds.rb
.
Thanks Lawson. Adding require "open-uri"
helped.
Getting a 404 now but my URL isn't in the .../public/values?alt=json
format so that's the likely cause. Looking into how to get my sheet in the format. Will post when I sort it out.
Thanks again.
Cool. I'm gonna close this issue, but feel free to post back to it when you sort things out. Or if you encounter another issue, feel free to open a new issue.
There were issues with my URL formation. I found the following article helpful in getting the format right https://spreadsheets.google.com/feeds/list/19zl2MuPUVK5kzLfT6oCiCtLWnLVRYPHdajN7RVsYuPQ/o5upex4/public/basic?alt=json
so it returned JSON from the appropriate worksheet:
http://sandbox.idre.ucla.edu/?p=906
It takes longer to fail now, indicating that the data is downloaded, if not seeded.
Current error:
LoadError: cannot load such file -- sprig/data/parser
I'll open a different issue if I can't sort this latest bit out.
Thanks again for the assistance.
I can curl the URL but Sprig can't seem to get to it. Also tested accessing link from other browsers/computers without active google sessions.
Environment info:
Gemfile: