user4643: I am getting an error connecting to the Blockfrost API with blockfrost-js

"Network token mismatch. Are you using token for the correct network?
See https://docs.blockfrost.io/#section/Available-networks."

I went to blockfrost.io and requested a API key for the testnet, but I still have this error. What to do?

user4643: To connect to the Testnet with blockfrost-js initialize it like this:
const API = new BlockFrostAPI({
  projectId: 'YOURAPIKEYFORTESTNET',
  isTestnet: true
});


4643: <p>I am getting an error connecting to the Blockfrost API with blockfrost-js</p>
<blockquote>
<p>&quot;Network token mismatch. Are you using token for the correct network?
See <a href="https://docs.blockfrost.io/#section/Available-networks.%22" rel="nofollow noreferrer">https://docs.blockfrost.io/#section/Available-networks.&quot;</a></p>
</blockquote>
<p>I went to blockfrost.io and requested a API key for the testnet, but I still have this error. What to do?</p>
 4643: <p>To connect to the Testnet with blockfrost-js initialize it like this:</p>
<pre><code>const API = new BlockFrostAPI({
  projectId: 'YOURAPIKEYFORTESTNET',
  isTestnet: true
});
</code></pre>
