loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.1937400791525976","path":"index.js","file":{"path":"index.js","content":{"asEncoding":{"base64":"Y29uc3QgQXBwYmFzZSA9IHJlcXVpcmUoImFwcGJhc2UtanMiKTsKCi8vIENyZWF0ZSBhcHBiYXNlIGluc3RhbmNlIHRvIHVzZSBtZXRob2RzCmNvbnN0IGFwcGJhc2VSZWYgPSBBcHBiYXNlKHsKICB1cmw6ICJodHRwczovL3NjYWxyLmFwaS5hcHBiYXNlLmlvIiwKICBhcHA6ICJob3VzaW5nLWRlbW8iLAogIGNyZWRlbnRpYWxzOiAiWW5DZ1Z3b3pWOmU5ZWM1Y2IwLTU4ZDgtNGJiMC1iYWRjLWFjYWY3MjY2NjFmMSIKfSk7CgovLyBHZXQgb3IgcmVhZCBkYXRhIGJhc2VkIG9uIGFuIGBpZGAKYXBwYmFzZVJlZi5nZXQoewogIHR5cGU6ICJsaXN0aW5nIiwKICBpZDogIkgxIgp9KS50aGVuKHJlc3BvbnNlID0+IHsKICBjb25zb2xlLmxvZygiU3VjY2VzczogIiwgSlNPTi5zdHJpbmdpZnkocmVzcG9uc2UsIG51bGwsICdcdCcpKTsKfSkuY2F0Y2goZXJyb3IgPT4gewogIGNvbnNvbGUubG9nKCJFcnJvcjogIiwgZXJyb3IpOwp9KTs="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const Appbase = require("appbase-js");

// Create appbase instance to use methods
const appbaseRef = Appbase({
  url: "https://scalr.api.appbase.io",
  app: "housing-demo",
  credentials: "YnCgVwozV:e9ec5cb0-58d8-4bb0-badc-acaf726661f1"
});

// Get or read data based on an `id`
appbaseRef.get({
  type: "listing",
  id: "H1"
}).then(response => {
  console.log("Success: ", JSON.stringify(response, null, '\t'));
}).catch(error => {
  console.log("Error: ", error);
});
node v10.16.0