Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

When deleting webhook it attempts to connect to 127.0.0.1 #44

Open
tab00 opened this issue Jan 23, 2021 · 0 comments
Open

When deleting webhook it attempts to connect to 127.0.0.1 #44

tab00 opened this issue Jan 23, 2021 · 0 comments

Comments

@tab00
Copy link

tab00 commented Jan 23, 2021

request.del() at

this._del('/hooks/' + id, {}, function (error, body) {

throws this error:

error: {
"errno": "ECONNREFUSED",
"code": "ECONNREFUSED",
"syscall": "connect",
"address": "127.0.0.1",
"port": 80
}

When I replace the request.del() call with this HTTP.call() deletion works:

  const response = HTTP.call("DELETE", urlr,
    {
      query: "token=" + Meteor.settings.BC_TOKEN
    })

  if (response.statusCode === 204) {
    console.log("webhook deleted successfully: ", response.statusCode)
    return true
  } else {
    console.error("error when deleting webhook:", response.statusCode)
    console.log("response.content:", response.content)
  }

Please fix this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant