tuba8890 / AccountGen

GNU General Public License v3.0
4 stars 1 forks source link

Error #3

Closed Marsi591 closed 1 year ago

Marsi591 commented 1 year ago

Hey im getting this Error when trying to Access the site ERROR:Start:Exception on / [GET] Traceback (most recent call last): File "D:\Python\Python38\lib\site-packages\flask\app.py", line 2190, in wsgi_app response = self.full_dispatch_request() File "D:\Python\Python38\lib\site-packages\flask\app.py", line 1486, in full_dispatch_request rv = self.handle_user_exception(e) File "D:\Python\Python38\lib\site-packages\flask\app.py", line 1484, in full_dispatch_request rv = self.dispatch_request() File "D:\Python\Python38\lib\site-packages\flask\app.py", line 1469, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "C:\Users\Marsi\Desktop\source\Start.py", line 76, in index siteSettings = mongo.db.site.find_one({"_id": "1"}) AttributeError: 'NoneType' object has no attribute 'site'

and when directly going to localhost:8080/login i get an unvalid oauth error

RjManhas commented 1 year ago

@Marsi591 one issue is due to your mongodb connection string. Can you please provide it so we can check it.

Marsi591 commented 1 year ago

@tuba8890 @RjManhas MONGO_URI=mongodb+srv://secret:secret@cluster0.wi92so6.mongodb.net/?retryWrites=true&w=majority

RjManhas commented 1 year ago

I see the issue with this connection string try to remove the stuff after the /? Part and add /site

On Mon, Oct 2, 2023 at 12:55 PM Marsi @.***> wrote:

@tuba8890 https://github.com/tuba8890 @RjManhas https://github.com/RjManhas MONGO_URI=mongodb+srv://secret: @.***/?retryWrites=true&w=majority

— Reply to this email directly, view it on GitHub https://github.com/tuba8890/AccountGen/issues/3#issuecomment-1743585583, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4BZDNPAURET6MUEDPCRLQDX5MEY3AVCNFSM6AAAAAA5NXZN3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGU4DKNJYGM . You are receiving this because you were mentioned.Message ID: @.***>

Marsi591 commented 1 year ago

yep it worked thx and how do i fix the discord oauth thing? @RjManhas and thx for the fast response

RjManhas commented 1 year ago

I will have to wait in tell I get home to see since I’m using my email to respond on my phone lol

On Mon, Oct 2, 2023 at 12:58 PM Marsi @.***> wrote:

yep it worked thx and how do i fix the discord oauth thing?

— Reply to this email directly, view it on GitHub https://github.com/tuba8890/AccountGen/issues/3#issuecomment-1743590449, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4BZDNKZPQTL7A7XPVWYAWDX5MFGNAVCNFSM6AAAAAA5NXZN3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGU4TANBUHE . You are receiving this because you were mentioned.Message ID: @.***>

Marsi591 commented 1 year ago

yep ok

Marsi591 commented 1 year ago

Are you home @RjManhas ?

RjManhas commented 1 year ago

make sure you have your client id and secret from your discord app set right.

Marsi591 commented 1 year ago

yea i have like it isnt hard to do that image @RjManhas i left the last 2 digits of the secret

Marsi591 commented 1 year ago

@RjManhas can you pls help me

RjManhas commented 1 year ago

what does your redirect look like and are you self hosting it?

Marsi591 commented 1 year ago

@RjManhas Like this localhost:8080/callback/ tried it with an domain too but it's not working for me and im self hosting it currently

Marsi591 commented 1 year ago

@RjManhas I think it has something to do with the code i tried it on an other application it worked completely fine

RjManhas commented 1 year ago

@Marsi591 im running it right now https://account.artaxnetwork.com it works fine you just dont got it setup right. try adding this too http://localhost:8080/callback

Marsi591 commented 1 year ago

Ok let me try

Marsi591 commented 1 year ago

still not working😢

Marsi591 commented 1 year ago

i made it work @RjManhas thx

Marsi591 commented 1 year ago

@RjManhas try to create an generator

Marsi591 commented 1 year ago

nvm was to dumb