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

Property Google\Service\Resource::$rootUrl does not exist #2632

Open
Mo7sin opened this issue Oct 4, 2024 · 2 comments
Open

Property Google\Service\Resource::$rootUrl does not exist #2632

Mo7sin opened this issue Oct 4, 2024 · 2 comments

Comments

@Mo7sin
Copy link

Mo7sin commented Oct 4, 2024

Environment details

Steps to reproduce

  1. I use service account credentials from content/service-account.json authentication method.
  2. When I hit run() method from 'php/ProductsSample.php', i always get Property Google\Service\Resource::$rootUrl does not exist.
  3. rootUrl is generated by prepareServices() method in 'php/ContentSession.php'
  4. This code has not been changed since 2021 and it was working just fine.

Thank you.

@asafloll
Copy link

Had exactly the same issue. Property name of $rootUrl in Google\Service\Resource has changed to $rootUrlTemplate. Changing rootUrl to rootUrlTemplate solved the problem.

@Mo7sin
Copy link
Author

Mo7sin commented Nov 15, 2024

Had exactly the same issue. Property name of $rootUrl in Google\Service\Resource has changed to $rootUrlTemplate. Changing rootUrl to rootUrlTemplate solved the problem.

I have already implemented the required changes and rectified the error. However, API calls are still not being executed. I have verified this through my API call monitoring capabilities on GMC, and I only observe GET requests to retrieve the account service being made.

image

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