loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.3266324579932913","path":"index.js","file":{"path":"index.js","content":{"asEncoding":{"base64":"CmNvbnN0IHJlcXVlc3QgPSByZXF1aXJlKCdyZXF1ZXN0Jyk7Cgp2YXIgcmVxID0gewogIHVybDogJ2h0dHBzOi8vYXBpLmRpZ2l0cmFuc2l0LmZpL3JvdXRpbmcvdjEvcm91dGVycy9oc2wvaW5kZXgvZ3JhcGhxbCcsCiAgbWV0aG9kOiAnUE9TVCcsCiAgaGVhZGVyczogeyAiQ29udGVudC1UeXBlIjogImFwcGxpY2F0aW9uL2dyYXBocWwiIH0sCiAgYm9keTogYHsgc3RvcChpZDogIkhTTDoxMDQwMTI5IikgewogICAgICAgICAgICBuYW1lCiAgICAgICAgICAgIGxhdAogICAgICAgICAgICBsb24KICAgICAgICAgICAgd2hlZWxjaGFpckJvYXJkaW5nCiAgICAgICAgICB9ICAKICAgICAgICB9YAp9OwoKcmVxdWVzdChyZXEsIGZ1bmN0aW9uIChlcnJvciwgcmVzcG9uc2UsIGJvZHkpIHsKICBpZiAoIWVycm9yICYmIHJlc3BvbnNlLnN0YXR1c0NvZGUgPT0gMjAwKSB7CiAgICBjb25zb2xlLmxvZyhKU09OLnN0cmluZ2lmeShKU09OLnBhcnNlKGJvZHkpLCBudWxsLCA0KSk7IAogIH0KfSk7"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const request = require('request');

var req = {
  url: 'https://api.digitransit.fi/routing/v1/routers/hsl/index/graphql',
  method: 'POST',
  headers: { "Content-Type": "application/graphql" },
  body: `{ stop(id: "HSL:1040129") {
            name
            lat
            lon
            wheelchairBoarding
          }  
        }`
};

request(req, function (error, response, body) {
  if (!error && response.statusCode == 200) {
    console.log(JSON.stringify(JSON.parse(body), null, 4)); 
  }
});
node v10.16.0