Closed (fixed)
Project:
Gmail API
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2025 at 06:26 UTC
Updated:
20 May 2025 at 07:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dineshkumarbollu commentedComment #3
dineshkumarbollu commentedHi @kushagra.goyal
I am unable to reproduce the can you provide detail steps for reproduce.
but the issue is due TypedConfigManagerInterface in latest versions of drupal
add
and inject service in contructor may fix the issue.see the similar issue for reference workflow
Comment #4
niharika.s commentedI got the error i have attached the screenshot and when i try to resolve the error by installing client library composer require google/apiclient:"^2.0" # Or latest compatible version then i got the error
The OAuth client was not found.
If you are a developer of this app, see error details.
Error 401: invalid_client
Comment #5
niharika.s commentedgot error after installing client library
Comment #6
kushagra.goyal commentedHi @dineshkumarbollu, I'm not sure why it's not replicating on your system. For me, I can see this error whether I install it via Composer or manually. However, after injecting this service, it's working.
@niharika.s, did you install it using Composer?
Comment #7
niharika.s commented@kushagra.goyal i install via gitclone
Comment #8
kushagra.goyal commented@niharika.s That's why the issue exists for you. The module requires Google dependencies, which are initially installed via Composer. This ensures everything works correctly. Installing
apiclientlater may still leave other dependencies missing. Try installing the module with Composer, and it should work as expected.Comment #10
kushagra.goyal commentedMR is created for this particular issue.
Comment #11
alan_blake commentedAdd information about #3 statement:
Refer to "New parameter added to \Drupal\Core\Form\ConfigFormBase::__construct", this arguments is optional in drupal core v10.2 but will be required in v11.0.
I tested the module with drupal core v10.4.2, both with and without #9 's fix, this module works properly.
Comment #14
sundhar