Shaked Tayeb Shaked Tayeb - 1 year ago 91
Node.js Question

Autodesk Forge API a-401 Error

I'm trying to make a simple forge test work.

I am been using this basic git project:

what i did so far:

  1. i created an account.

  2. implemented the creds in the config file

  3. uploaded a file to using my secret key.
    4 i took the udn and passed it into the viewer.js file.

  4. ran npm install

  5. npm run

when i go to the localhost:3000 i still get :

dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bW9kZWwyMDE2LTExLTExLTEyLTQxLTA3LXlldmJwbHl0Yzkya3Y2cGtqdW10Z2F5ZnJ3dTAvUkEtUy1CdWlsZGluZy5ydnQ:1 GET…TEyLTQxLTA3LXlldmJwbHl0Yzkya3Y2cGtqdW10Z2F5ZnJ3dTAvUkEtUy1CdWlsZGluZy5ydnQ 401 (Unauthorized)
viewer.js:210 Access was denied to a network resource (HTTP 403).

The buttons for the load and unload extension are visible.

any ideas what i'm missing here?

Answer Source

I think you are looking at a deprecated repo, if you want to start with the use of boilerplate samples of the API this is a better option for you.

Hope it helps. Cheers,

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download