Open Cloud List Datastores keeps saying my API Key is invalid despite me just generating it today

I’m experimenting with Open Cloud, but whenever I try sending a request to list datastores it says my API Key is invalid. I just made the key today, I have no idea what’s going on.

Here’s the code, I’m using express.js + node.js’s built in https module

const listOptions = {
  	params: {
		'prefix': '',
    'limit': '10',
	},
	headers: {
		'x-api-key': DatastoresAPIKey
	}
}



app.get('/list', function (req, res) {
    https.get(`https://apis.roblox.com/datastores/v1/universes/3984205042/standard-datastores`, listOptions, (response) => {

    var result = ''
    response.on('data', function(chunk) {
        result += chunk;
    });

    response.on('end', async function() {
  

        console.log(result)

      res.send(result)
      })
})

Figured it out. Turns out I didn’t set the IP Address properly

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.