Skip to content

🐛 Bug Report: No repos visible after connecting GitHub #7352

Closed

Description

@stnguyen90

👟 Reproduction steps

  1. Go to https://github.com/settings/profile
  2. Check "Make profile private and hide activity"
  3. Go to Appwrite
  4. Connect to GitHub
  5. Create a function

👍 Expected behavior

The list of repos show.

👎 Actual Behavior

No repos show:

image

Looking at the logs, Appwrite threw "Repositories list missing in the response.".

The response from GitHub is:

array (
  'headers' => 
  array (
    'server' => 'GitHub.com',
    'date' => 'Fri, 29 Dec 2023 00:39:06 GMT',
    'content-type' => 'application/json; charset=utf-8',
    'content-length' => '360',
    'cache-control' => 'no-cache',
    'vary' => 'Accept-Encoding, Accept, X-Requested-With',
    'x-github-media-type' => 'github.v3; format=json',
    'x-github-api-version-selected' => '2022-11-28',
    'x-ratelimit-limit' => '30',
    'x-ratelimit-remaining' => '29',
    'x-ratelimit-reset' => '1703810406',
    'x-ratelimit-used' => '1',
    'x-ratelimit-resource' => 'search',
    'access-control-expose-headers' => 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
    'access-control-allow-origin' => '*',
    'strict-transport-security' => 'max-age=31536000; includeSubdomains; preload',
    'x-frame-options' => 'deny',
    'x-content-type-options' => 'nosniff',
    'x-xss-protection' => '0',
    'referrer-policy' => 'origin-when-cross-origin, strict-origin-when-cross-origin',
    'content-security-policy' => 'default-src \'none\'',
    'x-github-request-id' => 'FDC1:6342:17FE11D:18F3C36:658E152A',
    'status-code' => 422,
  ),
  'body' => 
  array (
    'message' => 'Validation Failed',
    'errors' => 
    array (
      0 => 
      array (
        'message' => 'The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.',
        'resource' => 'Search',
        'field' => 'q',
        'code' => 'invalid',
      ),
    ),
    'documentation_url' => 'https://docs.github.com/v3/search/',
  ),
)

Related thread: https://discord.com/channels/564160730845151244/1189742321353367683

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

No response

👀 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?

Activity

  1. added
    bug
    product / functions
    on Dec 29, 2023
  2. harshvardhan-anand commented on Nov 18, 2024

    @harshvardhan-anand

    I found the solution to this problem -

    1. Select Your Project:
      Navigate to your project from the Appwrite home page.

    2. Go to Settings:
      Click on Settings located in the bottom-left corner.

    3. Navigate to Overview Tab:
      In the Overview tab, scroll down to Git Configuration.

    4. Add Installation:
      Click on Add Installation.

    5. Select GitHub:
      A GitHub page will open.

    6. Configure Repository Access:

      • Scroll down to Repository Access on the GitHub page.
      • Select the repository you want to grant access to.
    7. Save Changes:
      Click Save to confirm the selection.

    8. Redirect to Appwrite Console:
      You'll be redirected back to the Appwrite console.

    9. Verify Repository Access:
      Now, try to find and select the repository in Appwrite. It should appear and be accessible.

  3. HarshMN2345 commented on Sep 15, 2026

    @HarshMN2345
    Member

    Fixed in #13695

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

    bugproduct / functions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions