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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project does not run #2

Open
buggingcoder opened this issue Jul 9, 2024 · 3 comments
Open

Project does not run #2

buggingcoder opened this issue Jul 9, 2024 · 3 comments

Comments

@buggingcoder
Copy link

buggingcoder commented Jul 9, 2024

After setting-up the complete GCP process, I have all the required credentials like api_key, client_secret and client_id, even then I am not able to run the project.

It is throwing 404 for the login api.

Kindly look into it. Maybe if there is something, you might have missed to add in the instructions.

I will be looking forward to it.

Thank you.

@atwellpub
Copy link
Contributor

atwellpub commented Jul 10, 2024

Thanks for checking out the asset @buggingcoder. I've improved the readme documentation a little, specifically adding this to the setup instruction:

  1. Set Up Test Users (Since the App is Not Published):
    • Go to the "OAuth consent screen" section in the Google Developers Console.
    • Scroll down to the "Test users" section.
    • Click "Add users" and enter the email addresses of users who will be testing your app.
    • These users will now be able to access your application using OAuth, even though the app is not published.

That might be why you're seeing a 403 error (I know you mentioned 404, but I ran a clean test today and the first error I experienced was a 403 message from Google.).

I also updated NextJS to 14.2 as there was a security/vulnerability warning when I ran npm audit, which also required some of the components to be updated.

I've pushed all changes to the repo. If you are still having issues exploring the app, please feel free to share screenshots and I'll see if I can help further.

@buggingcoder
Copy link
Author

Hi @atwellpub , thank you for the quick reply but even after adding the test user I was not able to run the project. It is still showing me 404 error for the login api. I am attaching the screenshot for your reference.

Screenshot from 2024-07-10 10-00-28

I will try a few other steps but kindly look into it.

Thank you.

@atwellpub
Copy link
Contributor

Hi @buggingcoder

Quite possibly you have the wrong redirect URI setup in your google oauth settings.

It should be http://localhost:3000/login for local testing.

/auth/login does not look correct.

Will you re-check this section and let me know if step 8 is performed correctly?

https://github.com/gbti-labs/nextjs-google-drive-directory?tab=readme-ov-file#setting-up-the-google-drive-api

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

No branches or pull requests

2 participants