MarcelRobitaille / nextcloud_google_synchronization

🇬 Google integration into Nextcloud
GNU Affero General Public License v3.0
18 stars 1 forks source link

401 error from google #18

Open CybSecUK opened 3 weeks ago

CybSecUK commented 3 weeks ago

Which version of synchronization_google are you using?

Latest ( sorry away from machine)

Which version of Nextcloud are you using?

Hub8

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Chrome up to date and checked with Firefox

Describe the Bug

Failed to get number of Google contacts: Request failed with status code 401 connected to app, authorised all ok, get this error when telling app to sync from admin area of nc

Expected Behavior

Google acc sync

To Reproduce

Follow instructions in app doc

MarcelRobitaille commented 3 weeks ago

Hi @CybSecUK. Thanks for reporting. Could you please send a screenshot of where you see the 401 error? Could you please also share your server logs? You can go to settings > Logging > 3-dot menu > Download logs. This will be impossible to diagnose without logs.

CybSecUK commented 3 weeks ago

[image: Google sync 401-1.PNG] Hi, hope this is what you need its a new NC install, so I may have missed something Stubbsy

On Fri, 7 Jun 2024 at 18:33, Marcel Robitaille @.***> wrote:

Hi @CybSecUK https://github.com/CybSecUK. Thanks for reporting. Could you please send a screenshot of where you see the 401 error? Could you please also share your server logs? You can go to settings > Logging > 3-dot menu > Download logs. This will be impossible to diagnose without logs.

— Reply to this email directly, view it on GitHub https://github.com/MarcelRobitaille/nextcloud_google_synchronization/issues/18#issuecomment-2155251026, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2CJOPO7AEANVH7KJ553T3LZGHVF7AVCNFSM6AAAAABI7BHFW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGI2TCMBSGY . You are receiving this because you were mentioned.Message ID: <MarcelRobitaille/nextcloud_google_synchronization/issues/18/2155251026@ github.com>

CybSecUK commented 3 weeks ago

Hi, any ideas ? Stubbsy

On Fri, 7 Jun 2024 at 18:50, Cyb Sec @.***> wrote:

[image: Google sync 401-1.PNG] Hi, hope this is what you need its a new NC install, so I may have missed something Stubbsy

On Fri, 7 Jun 2024 at 18:33, Marcel Robitaille @.***> wrote:

Hi @CybSecUK https://github.com/CybSecUK. Thanks for reporting. Could you please send a screenshot of where you see the 401 error? Could you please also share your server logs? You can go to settings > Logging > 3-dot menu > Download logs. This will be impossible to diagnose without logs.

— Reply to this email directly, view it on GitHub https://github.com/MarcelRobitaille/nextcloud_google_synchronization/issues/18#issuecomment-2155251026, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2CJOPO7AEANVH7KJ553T3LZGHVF7AVCNFSM6AAAAABI7BHFW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGI2TCMBSGY . You are receiving this because you were mentioned.Message ID: <MarcelRobitaille/nextcloud_google_synchronization/issues/18/2155251026@ github.com>

MarcelRobitaille commented 3 weeks ago

The image did not send correctly. This is all I see in GitHub. image

CybSecUK commented 2 weeks ago

Please aee attached, the other email didnt get through, removed and readded, still getting the 401 error

On Fri, 7 Jun 2024 at 18:33, Marcel Robitaille @.***> wrote:

Hi @CybSecUK https://github.com/CybSecUK. Thanks for reporting. Could you please send a screenshot of where you see the 401 error? Could you please also share your server logs? You can go to settings > Logging > 3-dot menu > Download logs. This will be impossible to diagnose without logs.

— Reply to this email directly, view it on GitHub https://github.com/MarcelRobitaille/nextcloud_google_synchronization/issues/18#issuecomment-2155251026, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2CJOPO7AEANVH7KJ553T3LZGHVF7AVCNFSM6AAAAABI7BHFW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGI2TCMBSGY . You are receiving this because you were mentioned.Message ID: <MarcelRobitaille/nextcloud_google_synchronization/issues/18/2155251026@ github.com>

MarcelRobitaille commented 2 weeks ago

There is still nothing attached. Please comment on GitHub instead of using email. It is not working.

CybSecUK commented 1 week ago

Hi, hopefully, these are attached nextcloudLOG.zip 401error_Gsync_NC

urbaman commented 1 week ago

Hi, having the very same problem, any solution?

MarcelRobitaille commented 1 week ago

@CybSecUK Thank you for sending the image. I know that there are error messages. Could you please send some logs as described before?

Could you please also share your server logs? You can go to settings > Logging > 3-dot menu > Download logs. This will be impossible to diagnose without logs.

CybSecUK commented 1 week ago

The logs were in the zip file ?

Paul Stubbs | CybSec

On Wed, 19 Jun 2024 at 20:48, Marcel Robitaille @.***> wrote:

@CybSecUK https://github.com/CybSecUK Thank you for sending the image. I know that there are error messages. Could you please send some logs as described before?

Could you please also share your server logs? You can go to settings > Logging > 3-dot menu > Download logs. This will be impossible to diagnose without logs.

— Reply to this email directly, view it on GitHub https://github.com/MarcelRobitaille/nextcloud_google_synchronization/issues/18#issuecomment-2179376319, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2CJOPL2UBFWURYPNG2AQKTZIHOCNAVCNFSM6AAAAABI7BHFW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGM3TMMZRHE . You are receiving this because you were mentioned.Message ID: <MarcelRobitaille/nextcloud_google_synchronization/issues/18/2179376319@ github.com>

MarcelRobitaille commented 1 week ago

@CybSecUK Sorry I missed that link. I will take a look.

CybSecUK commented 6 days ago

Hi, just wondered if any update ?

MarcelRobitaille commented 3 days ago

Hi @CybSecUK

I looked through the log file you attached and I did not see any mention of this app. Must be a purely fronend issue. I should add some better error reporting for these errors.

I just tried to reproduce the error in a fresh development docker container and I was not able to. Everything worked perfectly.

Steps to NOT reproduce:

  1. https://github.com/juliushaertl/nextcloud-docker-dev?tab=readme-ov-file#standalone-containers
  2. Copied standalone command: docker run --rm -p 8080:80 ghcr.io/juliushaertl/nextcloud-dev-php80:latest (changed 80 to 81)
  3. Navigated to localhost:8080
  4. Installed the latest integration google app version
  5. Followed the instructions in the connected accounts page
  6. Pressed login in the data migration page

Some steps for you to try:

  1. Please try my steps above and let me know if that works for you
  2. Please double check that you followed all the steps in the connected accounts page exactly. Maybe you forgot to add the redirect url?
MarcelRobitaille commented 3 days ago

Please try the newly released version 2.2.0. I have made some improvements to the frontend error reporting.