question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When using the playerSplits method I get the following: You don't have permission to access "http://stats.nba.com/stats/playerdashboardbygeneralsplits?" on this server.

Have they changed something and we can’t access it now?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
briancbarrowcommented, Dec 16, 2016

Thanks @brandly I will try that when I get home tonight. That makes sense now and I should be able to get it working.

0reactions
bttmlycommented, Dec 16, 2016

Alternately, you can render pages on the server with React:

const express = require('express')
const nba = require('nba')
const app = express()
const React = require("react");
const ReactDOMServer = require("react-dom/server");
const SpiffyPlayerSplitsView = require("./PlayerSplits.jsx");

app.get('/playerSplits', (req, res) => {
  nba.stats.playerSplits(req.query)
  .then(data => {
    const html = ReactDOMServer.renderToString(
        <SpiffyPlayerSplitsView data={data}/>
    );
    res.send(html);
  }, error => {
    res.status(400).send(error)
  })
})

app.listen(3000, function () {
  console.log('Ready')
})
Read more comments on GitHub >

github_iconTop Results From Across the Web

"Access Denied" or other errors when you access or work with ...
Cause An "Access Denied" error message can occur for one or more of the following reasons: The folder ownership has changed. You do...
Read more >
Fix “Access Denied, You Don't Have Permission To Access on ...
The “Access Denied” error appears when your browser uses different proxy settings or VPN instead of what's really set on your Windows 10...
Read more >
Windows 10 "Access Denied" Folder Errors: 5 Easy Fixes
The most common fix to try when you see "folder access denied" is to take ownership of the folder through the File Explorer....
Read more >
Fix Access Denied Errors with Ease [CMD, Hard Drive, Folder]
Access is denied? Take the matter into your hands and fix this Windows 10 error by taking ownership of the problematic directory.
Read more >
How to fix "Access Denied" error step-by-step on Windows 10 ...
Step 1 In Windows Explorer, right-click the partition that you cannot access and click Properties. Continue clicking Security -> Advanced. Step 2 Click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found