Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: function is not accessible from gitlab and postman but executes successfully from the Appwrite UI #8314

Open
2 tasks done
nikita-mityagin opened this issue Jun 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nikita-mityagin
Copy link

馃憻 Reproduction steps

I created appwrtie function to handle gitlab webhooks.
It is executed successfully when I call it from the appwrite UI, but gitlab fails to reach it with
Error: Net::ReadTimeout

I also tried postman and it just stuck trying to get a response.

This is the request gitlab tries to send to my function

POST https://65ec1fae9f354c38b622.appwrite.global

Content-Type: application/json
User-Agent: GitLab/17.2.0-pre
X-Gitlab-Event: Push Hook
X-Gitlab-Webhook-UUID: ac770e95-80a5-4dd1-a64a-ce2138ebf278
X-Gitlab-Instance: https://gitlab.com
X-Gitlab-Event-UUID: d461fd4d-15ac-4c0e-8227-782553a1f185
X-Gitlab-Token: [REDACTED]
{
  "object_kind": "push",
  "event_name": "push",
  "before": "e0cd46f4a30a024a7b7c1258ef5e7e2f52dd1d07",
  "after": "665f54a08ba398a48ac58322c60c684199265241",
  "ref": "refs/heads/develop",
  "ref_protected": false,
  "checkout_sha": "665f54a08ba398a48ac58322c60c684199265241",
  "message": null,
  "user_id": 1183832,
  "user_name": "Nikita Mitiagin",
  "user_username": "nikita.mityagin",
  "user_email": "[REDACTED]",
  "user_avatar": "https://gitlab.com/uploads/-/system/user/avatar/1183832/avatar.png",
  "project_id": 13084746,
  "project": {
    "id": 13084746,
    "name": "Rabbit Wallet Application",
    "description": "Rabbit wallet application. The major repository of rabbit.io projects group",
    "web_url": "https://gitlab.com/rabbitio/wallet",
    "avatar_url": "https://gitlab.com/uploads/-/system/project/avatar/13084746/photo_2023-06-30_01.05.37.jpeg",
    "git_ssh_url": "[email protected]:rabbitio/wallet.git",
    "git_http_url": "https://gitlab.com/rabbitio/wallet.git",
    "namespace": "rabbit.io",
    "visibility_level": 0,
    "path_with_namespace": "rabbitio/wallet",
    "default_branch": "develop",
    "ci_config_path": "",
    "homepage": "https://gitlab.com/rabbitio/wallet",
    "url": "[email protected]:rabbitio/wallet.git",
    "ssh_url": "[email protected]:rabbitio/wallet.git",
    "http_url": "https://gitlab.com/rabbitio/wallet.git"
  },
  "commits": [
    {
      "id": "665f54a08ba398a48ac58322c60c684199265241",
      "message": "Merge branch 'release-0.16.0' into develop\n",
      "title": "Merge branch 'release-0.16.0' into develop",
      "timestamp": "2024-06-21T20:38:13-07:00",
      "url": "https://gitlab.com/rabbitio/wallet/-/commit/665f54a08ba398a48ac58322c60c684199265241",
      "author": {
        "name": "Sergey Mach",
        "email": "[REDACTED]"
      },
      "added": [

      ],
      "modified": [
        ".husky/commit-msg",
        "backend/package-lock.json",
        "backend/package.json",
        "backend/src/next/components/organisms/SwapFormWithCoinDropdowns/SwapFormWithCoinDropdowns.js",
        "package-lock.json",
        "package.json",
        "version.txt"
      ],
      "removed": [

      ]
    },
    {
      "id": "aec6217fbd5947c82771e2173ba3b95b04e5b47d",
      "message": "Fixed bug with passing wrong amount for swap creation. task_id=fe7399cc7a27499c802d96c5a889becf\n",
      "title": "Fixed bug with passing wrong amount for swap creation. task_id=fe7399cc7a27499c802d96c5a889becf",
      "timestamp": "2024-06-21T19:55:09+04:00",
      "url": "https://gitlab.com/rabbitio/wallet/-/commit/aec6217fbd5947c82771e2173ba3b95b04e5b47d",
      "author": {
        "name": "Nikita Mitiagin",
        "email": "[REDACTED]"
      },
      "added": [

      ],
      "modified": [
        "backend/src/next/components/organisms/SwapFormWithCoinDropdowns/SwapFormWithCoinDropdowns.js"
      ],
      "removed": [

      ]
    },
    {
      "id": "e0cd46f4a30a024a7b7c1258ef5e7e2f52dd1d07",
      "message": "Updated the ui-kit. task_id=b8f47bba236a47999f4b0085ec286749\n",
      "title": "Updated the ui-kit. task_id=b8f47bba236a47999f4b0085ec286749",
      "timestamp": "2024-06-21T00:11:38-07:00",
      "url": "https://gitlab.com/rabbitio/wallet/-/commit/e0cd46f4a30a024a7b7c1258ef5e7e2f52dd1d07",
      "author": {
        "name": "Sergey Mach",
        "email": "[REDACTED]"
      },
      "added": [

      ],
      "modified": [
        "backend/package-lock.json",
        "backend/package.json",
        "package-lock.json",
        "package.json"
      ],
      "removed": [

      ]
    }
  ],
  "total_commits_count": 3,
  "push_options": {
  },
  "repository": {
    "name": "Rabbit Wallet Application",
    "url": "[email protected]:rabbitio/wallet.git",
    "description": "Rabbit wallet application. The major repository of rabbit.io projects group",
    "homepage": "https://gitlab.com/rabbitio/wallet",
    "git_http_url": "https://gitlab.com/rabbitio/wallet.git",
    "git_ssh_url": "[email protected]:rabbitio/wallet.git",
    "visibility_level": 0
  }
}

馃憤 Expected behavior

Function should be accessible by external services.

馃憥 Actual Behavior

External services cannot access the function API endpoint

馃幉 Appwrite version

Appwrite Cloud

馃捇 Operating system

Something else

馃П Your Environment

project id 65ec13b110ff10356d75
function id 65ec1fadd19f75d3307f
deployment id 65ed8f05ca7e65572c74
successful execution id inside the appwrite UI 66795778a9c0350854fa

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@nikita-mityagin nikita-mityagin added the bug Something isn't working label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant