Skip to content
Back

Error 400 general_bad_request

  • 0
  • Auth
  • Web
  • Cloud
Anil Khairnar
19 Mar, 2025, 09:52

I am getting general_bad_request when trying to login Github

I have follow the Appwrite's YouTube video to setup Github OAuth

TypeScript
const loginWithGithub = async () => {
    try {
      setLoading(true);
      setError(null);

      account.createOAuth2Session(
        "github",
        process.env.REACT_APP_SUCCESS_URL,
        process.env.REACT_APP_FAILURE_URL
      );
    } catch (error) {
      console.error("Github login error", error);
      setError(error.message);
      setLoading(false);
    }
  };
TL;DR
Error 400 `general_bad_request` when trying to login to GitHub using Appwrite's OAuth. Developer followed a YouTube video to set up GitHub OAuth. Code snippet provided for logging in with GitHub using Appwrite.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more