nba-shots-db | Populate a database with NBA shot data
kandi X-RAY | nba-shots-db Summary
kandi X-RAY | nba-shots-db Summary
Rails app to populate a PostgreSQL database containing every shot attempted in the NBA since 1996. Blog post with some analysis of the data: Data comes from the NBA Stats API. As of March 2018, the database contains ~4.5 million shots from 2,000 players, and takes up 1.5 GB disk space.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nba-shots-db
nba-shots-db Key Features
nba-shots-db Examples and Code Snippets
Community Discussions
Trending Discussions on nba-shots-db
QUESTION
I am trying to populate the following PostgreSQL database: https://github.com/toddwschneider/nba-shots-db. I follow all the necessary steps, including installing Ruby, PostgreSQL, Rails, etc. But when I try to run bundle exec rake db:setup
I get a timeout error:
ANSWER
Answered 2020-Apr-14 at 18:27RestClient is timing out. RestClient is a tool for making web requests. According to your stack trace, the call site is line 156 of app/lib/nba_stats_client.rb. Take a look at what you're asking RestClient to do there. It is simply timing out in accessing the given URL. Try accessing that URL yourself (paste it into a browser or use curl) and you'll likely see the same timeout.
From the machine running your rails server, you could use a tool like curl to form the same request and most likely see the same timeout:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nba-shots-db
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page