InAnYan / gib-test-repo

Repository for testing GIB
0 stars 0 forks source link

GitHub unauthorized excpetion #34

Open InAnYan opened 1 month ago

InAnYan commented 1 month ago

HellO! Wanted to run your bot! However, I'm getting "unauthorized" error in the logs? I have supplied the App id and private token.

I'm running the development branch on Linux. The logs are:


00.00.00: main.rs: Starting up.
00.00.01: main.rs: Connecting to GitHub...
00.00.02: main.rs: Connecting to OpenAI...
00.00.03: github.rs: Error: UNAUTHORIZED.
00.00.04: main.rs: Exiting...
`
intellectual-bot-for-github[bot] commented 1 month ago

Hi InAnYan,

Thank you for reporting the issue! To help us assist you better, could you please provide a few additional details?

  1. App ID and Private Key: Could you confirm that the App ID and private key you provided are correct? Have you checked if they have the necessary permissions for accessing the GitHub API?

  2. Environment Variables: Please ensure that you have set the environmental variables correctly. Specifically, have you set the GIB_OPENAI_KEY variable?

  3. Logs: The logs you've shared are helpful, but could you provide more context or additional log lines before and after the "UNAUTHORIZED" error? This may help us understand the issue better.

  4. Does the issue persist on reload?: Please let us know if the unauthorized error continues after restarting the bot.

  5. Rust Version: It would be useful to know which version of Rust you are using. You can check this by running rustc --version.

Providing this additional information will allow us to investigate the issue more thoroughly. Thank you!