IanMitchell / discord-notifier

A ruby wrapper around Discord webhooks
MIT License
14 stars 4 forks source link

error discord webhook and github #15

Open dinobossytnew opened 3 years ago

dinobossytnew commented 3 years ago
{
  "ref": "refs/heads/master",
  "before": "2405e741bbfcf03f9025ea8a06c9bac4c2a0d60e",
  "after": "224a2c5e3b212681410ed5a3abe373e825a08cf5",
  "repository": {
    "id": 276947057,
    "node_id": "MDEwOlJlcG9zaXRvcnkyNzY5NDcwNTc=",
    "name": "SunSetGringoLand",
    "full_name": "dinobossytnew/SunSetGringoLand",
    "private": false,
    "owner": {
      "name": "dinobossytnew",
      "email": "58078116+dinobossytnew@users.noreply.github.com",
      "login": "dinobossytnew",
      "id": 58078116,
      "node_id": "MDQ6VXNlcjU4MDc4MTE2",
      "avatar_url": "https://avatars.githubusercontent.com/u/58078116?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/dinobossytnew",
      "html_url": "https://github.com/dinobossytnew",
      "followers_url": "https://api.github.com/users/dinobossytnew/followers",
      "following_url": "https://api.github.com/users/dinobossytnew/following{/other_user}",
      "gists_url": "https://api.github.com/users/dinobossytnew/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/dinobossytnew/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/dinobossytnew/subscriptions",
      "organizations_url": "https://api.github.com/users/dinobossytnew/orgs",
      "repos_url": "https://api.github.com/users/dinobossytnew/repos",
      "events_url": "https://api.github.com/users/dinobossytnew/events{/privacy}",
      "received_events_url": "https://api.github.com/users/dinobossytnew/received_events",
      "type": "User",
      "site_admin": false
    },
    "html_url": "https://github.com/dinobossytnew/SunSetGringoLand",
    "description": "plugin prision basado en un ex mod 1.12.2",
    "fork": false,
    "url": "https://github.com/dinobossytnew/SunSetGringoLand",
    "forks_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/forks",
    "keys_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/keys{/key_id}",
    "collaborators_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/collaborators{/collaborator}",
    "teams_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/teams",
    "hooks_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/hooks",
    "issue_events_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/issues/events{/number}",
    "events_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/events",
    "assignees_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/assignees{/user}",
    "branches_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/branches{/branch}",
    "tags_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/tags",
    "blobs_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/git/blobs{/sha}",
    "git_tags_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/git/tags{/sha}",
    "git_refs_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/git/refs{/sha}",
    "trees_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/git/trees{/sha}",
    "statuses_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/statuses/{sha}",
    "languages_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/languages",
    "stargazers_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/stargazers",
    "contributors_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/contributors",
    "subscribers_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/subscribers",
    "subscription_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/subscription",
    "commits_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/commits{/sha}",
    "git_commits_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/git/commits{/sha}",
    "comments_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/comments{/number}",
    "issue_comment_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/issues/comments{/number}",
    "contents_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/contents/{+path}",
    "compare_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/compare/{base}...{head}",
    "merges_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/merges",
    "archive_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/{archive_format}{/ref}",
    "downloads_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/downloads",
    "issues_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/issues{/number}",
    "pulls_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/pulls{/number}",
    "milestones_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/milestones{/number}",
    "notifications_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/notifications{?since,all,participating}",
    "labels_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/labels{/name}",
    "releases_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/releases{/id}",
    "deployments_url": "https://api.github.com/repos/dinobossytnew/SunSetGringoLand/deployments",
    "created_at": 1593794936,
    "updated_at": "2021-11-02T00:55:14Z",
    "pushed_at": 1635814531,
    "git_url": "git://github.com/dinobossytnew/SunSetGringoLand.git",
    "ssh_url": "git@github.com:dinobossytnew/SunSetGringoLand.git",
    "clone_url": "https://github.com/dinobossytnew/SunSetGringoLand.git",
    "svn_url": "https://github.com/dinobossytnew/SunSetGringoLand",
    "homepage": null,
    "size": 26,
    "stargazers_count": 1,
    "watchers_count": 1,
    "language": null,
    "has_issues": true,
    "has_projects": true,
    "has_downloads": true,
    "has_wiki": true,
    "has_pages": false,
    "forks_count": 0,
    "mirror_url": null,
    "archived": false,
    "disabled": false,
    "open_issues_count": 0,
    "license": {
      "key": "epl-2.0",
      "name": "Eclipse Public License 2.0",
      "spdx_id": "EPL-2.0",
      "url": "https://api.github.com/licenses/epl-2.0",
      "node_id": "MDc6TGljZW5zZTMy"
    },
    "allow_forking": true,
    "is_template": false,
    "topics": [

    ],
    "visibility": "public",
    "forks": 0,
    "open_issues": 0,
    "watchers": 1,
    "default_branch": "master",
    "stargazers": 1,
    "master_branch": "master"
  },
  "pusher": {
    "name": "dinobossytnew",
    "email": "58078116+dinobossytnew@users.noreply.github.com"
  },
  "sender": {
    "login": "dinobossytnew",
    "id": 58078116,
    "node_id": "MDQ6VXNlcjU4MDc4MTE2",
    "avatar_url": "https://avatars.githubusercontent.com/u/58078116?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/dinobossytnew",
    "html_url": "https://github.com/dinobossytnew",
    "followers_url": "https://api.github.com/users/dinobossytnew/followers",
    "following_url": "https://api.github.com/users/dinobossytnew/following{/other_user}",
    "gists_url": "https://api.github.com/users/dinobossytnew/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/dinobossytnew/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/dinobossytnew/subscriptions",
    "organizations_url": "https://api.github.com/users/dinobossytnew/orgs",
    "repos_url": "https://api.github.com/users/dinobossytnew/repos",
    "events_url": "https://api.github.com/users/dinobossytnew/events{/privacy}",
    "received_events_url": "https://api.github.com/users/dinobossytnew/received_events",
    "type": "User",
    "site_admin": false
  },
  "created": false,
  "deleted": false,
  "forced": false,
  "base_ref": null,
  "compare": "https://github.com/dinobossytnew/SunSetGringoLand/compare/2405e741bbfc...224a2c5e3b21",
  "commits": [
    {
      "id": "224a2c5e3b212681410ed5a3abe373e825a08cf5",
      "tree_id": "b134494d98b6a42d434cceee69a7ca69d5abb38f",
      "distinct": true,
      "message": "Delete config.yml\n\nborra",
      "timestamp": "2021-11-01T21:55:31-03:00",
      "url": "https://github.com/dinobossytnew/SunSetGringoLand/commit/224a2c5e3b212681410ed5a3abe373e825a08cf5",
      "author": {
        "name": "dinobossytnew",
        "email": "58078116+dinobossytnew@users.noreply.github.com",
        "username": "dinobossytnew"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "username": "web-flow"
      },
      "added": [

      ],
      "removed": [
        "config.yml"
      ],
      "modified": [

      ]
    }
  ],
  "head_commit": {
    "id": "224a2c5e3b212681410ed5a3abe373e825a08cf5",
    "tree_id": "b134494d98b6a42d434cceee69a7ca69d5abb38f",
    "distinct": true,
    "message": "Delete config.yml\n\nborra",
    "timestamp": "2021-11-01T21:55:31-03:00",
    "url": "https://github.com/dinobossytnew/SunSetGringoLand/commit/224a2c5e3b212681410ed5a3abe373e825a08cf5",
    "author": {
      "name": "dinobossytnew",
      "email": "58078116+dinobossytnew@users.noreply.github.com",
      "username": "dinobossytnew"
    },
    "committer": {
      "name": "GitHub",
      "email": "noreply@github.com",
      "username": "web-flow"
    },
    "added": [

    ],
    "removed": [
      "config.yml"
    ],
    "modified": [

    ]
  }
}

is not work

dinobossytnew commented 3 years ago

Alt-Svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400 Cf-Cache-Status: DYNAMIC Cf-Ray: 6a7970f59ae45b04-IAD Content-Length: 58 Content-Type: application/json Date: Tue, 02 Nov 2021 01:03:07 GMT Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800} Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=o1Y0Xw5TDO6KzbkU%2BMVMZwPzYxD%2Bp1kkwUAyk2HYgusEudjouIH3ZBpBsPq3BMjqYQwZGEUUSUa8WHiWPXGUYqLF80OJ%2BO%2BY9zLDOWXUDVU3cN4AeQP9Wc5YhWxA"}],"group":"cf-nel","max_age":604800} Server: cloudflare Set-Cookie: __dcfduid=a3b184803b7811ec883442010a0a062d; Expires=Sun, 01-Nov-2026 01:03:07 GMT; Max-Age=157680000; Secure; HttpOnly; Path=/ Strict-Transport-Security: max-age=31536000; includeSubDomains; preload Via: 1.1 google X-Content-Type-Options: nosniff X-Envoy-Upstream-Service-Time: 60 X-Ratelimit-Bucket: 3cd1f278bd0ecaf11e0d2391374c011d X-Ratelimit-Limit: 5 X-Ratelimit-Remaining: 4 X-Ratelimit-Reset: 1635814990 X-Ratelimit-Reset-After: 2

dinobossytnew commented 3 years ago

{"message": "Cannot send an empty message", "code": 50006}

IanMitchell commented 3 years ago

can you share the code you're using to send the message?