parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.7k stars 4.76k forks source link

Unable to Login with Google #8830

Closed 2shrestha22 closed 7 months ago

2shrestha22 commented 7 months ago

New Issue Checklist

Issue Description

Unable to login with Google. It was working before.

Steps to reproduce

Try to login with Google.

Actual Outcome

Getting 502 error while login.

Expected Outcome

It should login normally.

Environment

Server

Database

Client

Logs

4|parse-server     | SyntaxError: Unexpected token < in JSON at position 0
4|parse-server     |     at JSON.parse (<anonymous>)
4|parse-server     |     at IncomingMessage.<anonymous> (/home/hatman/clashly-server/node_modules/parse-server/lib/Adapters/Auth/google.js:26:18)
4|parse-server     |     at IncomingMessage.emit (node:events:525:35)
4|parse-server     |     at endReadableNT (node:internal/streams/readable:1359:12)
4|parse-server     |     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
PM2                | App name:parse-server id:4 disconnected
PM2                | App [parse-server:4] exited with code [7] via signal [SIGINT]
PM2                | App [parse-server:4] starting in -cluster mode-
PM2                | App [parse-server:4] online
4|parse-server     | warn: DeprecationWarning: The Parse Server option 'allowClientClassCreation' default will change to 'false' in a future version.
4|parse-server     | warn: DeprecationWarning: The Parse Server option 'allowExpiredAuthDataToken' default will change to 'false' in a future version.
4|parse-server     | warn: DeprecationWarning: The Parse Server option 'encodeParseObjectInCloudFunction' default will change to 'true' in a future version.
4|parse-server     | [258263] parse-server running on http://127.0.0.1:1337/api
parse-github-assistant[bot] commented 7 months ago

Thanks for opening this issue!

2shrestha22 commented 7 months ago

My host is not able to get /oauth2/v3/certs. So it is related to my server.

2shrestha22 commented 7 months ago

After disabling ipv6 it is solved. My server was not able to get https://www.googleapis.com/oauth2/v3/certs using ipv6. Google blacklisted the server? I am closing this issue.