Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Running a node js script and getting an error - This feature is not available on this site

3513589Aug 1 2017 — edited Aug 3 2017

I am running a node js script from my desktop, getting the below error.

:\node js>node sample.js

< partial output>

       _headers: [Object],

       _headerNames: [Object],

       agent: [Object],

       socketPath: undefined,

       method: 'POST',

       path: '/network/v1/privategateway/',

       parser: null,

       res: [Circular] },

    ntick: true,

    response: [Circular],

    originalHost: 'api-z65.compute.us6.oraclecloud.com',

    originalHostHeaderName: 'host',

    responseContent: [Circular],

    _destdata: true,

    _ended: true,

    _callbackCalled: true },

toJSON: [Function: responseToJSON],

caseless:

  { dict:

     { date: 'Tue, 01 Aug 2017 09:37:14 GMT',

       server: 'nginx',

       'content-type': 'application/oracle-compute-v3+json',

       'content-length': '58',

       'content-language': 'en,en-us',

       'x-oracle-compute-call-id': 'eabcdb62-c9d7-49ec-97ce-995992a3fea6'

       'set-cookie': [Object],

       connection: 'close' } },

read: [Function],

body: '{"message": "This feature is not available on this site."}' }

409

Regards,

Comments

BrunoBorges-Oracle

It seems you are somehow calling the REST API of Compute Cloud Service from within your Node.js code? Can you please confirm?

3513589

yes

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 31 2017
Added on Aug 1 2017
2 comments
210 views