Skip to content
This repository was archived by the owner on Feb 20, 2021. It is now read-only.
This repository was 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

Description

@tab00

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions