Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Error: The API Key provided is not valid #30

@Brandnewson

Description

@Brandnewson

``I'm currently attempting a nodeJS project using commonJS modules. Whenever I try to run my server it gives me the following error:

Error: The API key provided is not valid.
at IEXRequest. (D:\Coding\iib\node_modules\node-iex-cloud\lib\request.js:128:31)
at step (D:\Coding\iib\node_modules\node-iex-cloud\lib\request.js:32:23)
at Object.next (D:\Coding\iib\node_modules\node-iex-cloud\lib\request.js:13:53)
at fulfilled (D:\Coding\iib\node_modules\node-iex-cloud\lib\request.js:4:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

This is the code I used to install `node-iex-cloud

`const { IEXCloudClient } = require("node-iex-cloud");
const fetch = require("node-fetch");

const iex_module = new IEXCloudClient(fetch, {
  sandbox: true,
  publishable: "pk_API_KEY",
  version: "stable"
});`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions