I am trying to make a flask app which uses the python library nba_py. I believe this library makes some web requests to pull down nba game data.
For example when I have a route that looks like this
@app.route('/games/', methods=['GET'])
def get_games():
scoreboard = nba_py.Scoreboard(month=2, day=21, year=2015)
return jsonify({'message': 'test'})
When I go to my route it just hangs and then eventually gives up. I'm not exactly sure what is going on behind the scenes of nba_py but does anyone have any idea why this might be timing out? The routes work perfectly on my local machine. I also tried executing scoreboard = nba_py.Scoreboard(month=2, day=21, year=2015) in the python shell and the command never executes it just hangs.