Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Fix Readme for New Contributors #838

Closed
0x4007 opened this issue Sep 25, 2023 · 27 comments · Fixed by #844
Closed

Fix Readme for New Contributors #838

0x4007 opened this issue Sep 25, 2023 · 27 comments · Fixed by #844

Comments

@0x4007
Copy link
Member

0x4007 commented Sep 25, 2023

Trying to set up a local instance of ubiquibot for the first time and the setup isnt clear even for me so i cant imagine new contributors without context.

Redo the entire readme. Just delete and create a new file. Make sure to start from a brand new clone and go through every step of setup and document correctly.

Make sure to clean up .env.example as well

from https://t.me/UbiquityDAO/29891/31238


I learned that the webhook secret is not optional. somewhere I read that it was. a contributor told me to just set it to something random on both the .env and the github app so this should be made clear.

also the error messages are really not descriptive and do not allow for debugging.

@0x4007 0x4007 changed the title Fix Readme for New Contribtors Fix Readme for New Contributors Sep 25, 2023
@molecula451
Copy link
Member

/start

@ubiquibot
Copy link

ubiquibot bot commented Sep 25, 2023

Deadline Mon, 25 Sep 2023 23:51:13 UTC
Registered Wallet 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4
Tips:
  • Use /wallet 0x0000...0000 if you want to update your registered payment wallet address @user.
  • Be sure to open a draft pull request as soon as possible to communicate updates on your progress.
  • Be sure to provide timely updates to us when requested, or you will be automatically unassigned from the bounty.

    @0x4007
    Copy link
    Member Author

    0x4007 commented Sep 25, 2023

    Github app private key

    Make sure to write a note that the following issue means a GITHUB APP private key issue in env file. must be joined into a single line and make sure that there are spaces between each line of the joined private key (which normally is 28 lines tall)

    INFO (http): POST / 500 - 2013ms
        err: {
          "type": "Error",
          "message": "failed with status code 500",
          "stack":
              Error: failed with status code 500
                  at ServerResponse.onResFinished (~/ubiquibot/node_modules/pino-http/logger.js:77:38)
                  at ServerResponse.emit (node:events:523:35)
                  at ServerResponse.emit (node:domain:489:12)
                  at onFinish (node:_http_outgoing:1005:10)
                  at callback (node:internal/streams/writable:562:21)
                  at afterWrite (node:internal/streams/writable:507:5)
                  at afterWriteTick (node:internal/streams/writable:494:10)
                  at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
        }
    ERROR (server): Internal Server Error
        Error: Internal Server Error
            at Request.callback (~/ubiquibot/node_modules/superagent/lib/node/index.js:929:17)
            at IncomingMessage.<anonymous> (~/ubiquibot/node_modules/superagent/lib/node/index.js:1174:20)
            at IncomingMessage.emit (node:events:523:35)
            at IncomingMessage.emit (node:domain:489:12)
            at endReadableNT (node:internal/streams/readable:1367:12)
            at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    status: 500
    
    1. I opened the .pem file
    2. in vscode i did cmd+j to "join" the lines.
    3. pasted the value and it looks like
    PRIVATE_KEY= -----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEAxvbCyja8k2yBJp1cxYDFv3nPgdPdzQqLtoWynPUW4PAqs36H R...
    

    Notice that there are spaces between each segment

    @0x4007
    Copy link
    Member Author

    0x4007 commented Sep 25, 2023

    Webhook Secret

    Secret is NOT optional for smee. you MUST add a value

    image

    WEBHOOK_SECRET=

    just make up something random and add it to your github app as well

    @molecula451
    Copy link
    Member

    this issue is reproducible

    @0x4007
    Copy link
    Member Author

    0x4007 commented Sep 25, 2023

    Supabase setup

    must set up database migrations on your own supabase instance for things to work

    Screenshot 2023-09-26 at 07 24 28

    @0x4007
    Copy link
    Member Author

    0x4007 commented Sep 25, 2023

    node version

    make sure using at least node 20

    @0x4007
    Copy link
    Member Author

    0x4007 commented Sep 25, 2023

    Make sure to also walk through all the fork secrets i'm doing that now

    @molecula451
    Copy link
    Member

    molecula451 commented Sep 27, 2023

    PRIVATE_KEY= -----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEAxvbCyja8k2yBJp1cxYDFv3nPgdPdzQqLtoWynPUW4PAqs36H R...

    
    Notice that there are spaces between each segment
    

    I try to reproduce this one specifically, this does not seem to be solution to "error 500",

    1. The private key gets automatically filled after the app is installed to a github handle
    2. The private key cannot be in spaces like that
    3. The private key is a string into its env var rather than a just opened info without "" otherwise it will not be recognized and you'll get unauthorized access
    4. Again this doesn't seem to be the solution to error 500 internal server error
    5. At last a issue will be opened for a 500 internal server error to PR

    @ubiquibot
    Copy link

    ubiquibot bot commented Oct 2, 2023

    Do you have any updates @molecula451? If you would like to release the bounty back to the DevPool, please comment /stop
    Last activity time: Wed Sep 27 2023 19:56:39 GMT+0000 (Coordinated Universal Time)

    @molecula451
    Copy link
    Member

    #844

    @ubiquibot
    Copy link

    ubiquibot bot commented Oct 6, 2023

    Do you have any updates @molecula451? If you would like to release the bounty back to the DevPool, please comment /stop
    Last activity time: Mon Oct 02 2023 06:05:44 GMT+0000 (Coordinated Universal Time)

    @molecula451
    Copy link
    Member

    /start

    @ubiquibot
    Copy link

    ubiquibot bot commented Oct 9, 2023

    Deadline Mon, 09 Oct 2023 12:51:49 UTC
    Registered Wallet 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4
    Tips:
    • Use /wallet 0x0000...0000 if you want to update your registered payment wallet address @user.
    • Be sure to open a draft pull request as soon as possible to communicate updates on your progress.
    • Be sure to provide timely updates to us when requested, or you will be automatically unassigned from the bounty.

      @ubiquibot
      Copy link

      ubiquibot bot commented Oct 13, 2023

      Do you have any updates @molecula451? If you would like to release the bounty back to the DevPool, please comment /stop
      Last activity time: Mon Oct 09 2023 10:51:42 GMT+0000 (Coordinated Universal Time)

      2 similar comments
      @ubiquibot
      Copy link

      ubiquibot bot commented Oct 13, 2023

      Do you have any updates @molecula451? If you would like to release the bounty back to the DevPool, please comment /stop
      Last activity time: Mon Oct 09 2023 10:51:42 GMT+0000 (Coordinated Universal Time)

      @ubiquibot
      Copy link

      ubiquibot bot commented Oct 13, 2023

      Do you have any updates @molecula451? If you would like to release the bounty back to the DevPool, please comment /stop
      Last activity time: Mon Oct 09 2023 10:51:42 GMT+0000 (Coordinated Universal Time)

      @ubiquibot
      Copy link

      ubiquibot bot commented Oct 16, 2023

      @molecula451 - Releasing the bounty back to dev pool because the allocated duration already ended!
      Last activity time: Mon Oct 09 2023 10:51:42 GMT+0000 (Coordinated Universal Time)

      @molecula451
      Copy link
      Member

      /start

      @ubiquibot
      Copy link

      ubiquibot bot commented Oct 16, 2023

      Deadline Mon, 16 Oct 2023 13:50:46 UTC
      Registered Wallet 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4
      Tips:
      • Use /wallet 0x0000...0000 if you want to update your registered payment wallet address @user.
      • Be sure to open a draft pull request as soon as possible to communicate updates on your progress.
      • Be sure to provide timely updates to us when requested, or you will be automatically unassigned from the bounty.

        @ubiquibot
        Copy link

        ubiquibot bot commented Oct 20, 2023

        Do you have any updates @molecula451? If you would like to release the bounty back to the DevPool, please comment /stop
        Last activity time: Mon Oct 16 2023 11:50:41 GMT+0000 (Coordinated Universal Time)

        @ubiquibot
        Copy link

        ubiquibot bot commented Oct 23, 2023

        @molecula451 - Releasing the bounty back to dev pool because the allocated duration already ended!
        Last activity time: Mon Oct 16 2023 11:50:41 GMT+0000 (Coordinated Universal Time)

        @molecula451
        Copy link
        Member

        /start

        @ubiquibot
        Copy link

        ubiquibot bot commented Oct 23, 2023

        Deadline Mon, 23 Oct 2023 14:10:27 UTC
        Registered Wallet 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4
        Tips:
        • Use /wallet 0x0000...0000 if you want to update your registered payment wallet address @user.
        • Be sure to open a draft pull request as soon as possible to communicate updates on your progress.
        • Be sure to provide timely updates to us when requested, or you will be automatically unassigned from the bounty.

          @ubiquibot
          Copy link

          ubiquibot bot commented Oct 29, 2023

          Do you have any updates @molecula451? If you would like to release the bounty back to the DevPool, please comment /stop
          Last activity time: Wed Oct 25 2023 13:35:13 GMT+0000 (Coordinated Universal Time)

          Copy link

          ubiquibot bot commented Nov 7, 2023

          Do you have any updates @molecula451? If you would like to release the bounty back to the DevPool, please comment /stop
          Last activity time: Thu Nov 02 2023 22:00:35 GMT+0000 (Coordinated Universal Time)

          @ubiquibot ubiquibot bot added the Permitted label Nov 9, 2023
          Copy link

          ubiquibot bot commented Nov 9, 2023

          Task Assignee Reward

          [ CLAIM 187.5 WXDAI ]

          0x4D0704f40...BD826dCFc4

          If you've enjoyed your experience in the DevPool, we'd appreciate your support. Follow Ubiquity on GitHub and star this repo. Your endorsement means the world to us and helps us grow!
          We are excited to announce that the DevPool and UbiquiBot are now available to partners! Our ideal collaborators are globally distributed crypto-native organizations, who actively work on open source on GitHub, and excel in research & development. If you can introduce us to the repository maintainers in these types of companies, we have a special bonus in store for you!

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

          Successfully merging a pull request may close this issue.

          2 participants