google-cloud-php icon indicating copy to clipboard operation
google-cloud-php copied to clipboard

Could not map bindings for google.analytics.data.v1beta.BetaAnalyticsData/RunReport to any Uri template

Open php4fan opened this issue 4 years ago • 3 comments

By running the example code at https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries I get this error:

Could not map bindings for google.analytics.data.v1beta.BetaAnalyticsData/RunReport to any Uri template

If I'm doing something wrong then this error message is garbage.

php4fan avatar Jan 31 '22 20:01 php4fan

Turns out I was passing

    'property' => MY_PROPERTY_ID

instead of

    'property' => 'properties/' . MY_PROPERTY_ID

Again, you need to fix the error message, something like "Invalid value XXXXX for parameter 'property'", or whatever.

php4fan avatar Jan 31 '22 20:01 php4fan

@php4fan Would you be able to share a brief stacktrace, please?

dwsupplee avatar Feb 06 '22 22:02 dwsupplee

@php4fan Would you be able to share a brief stacktrace, please?

@dwsupplee did you try and fail to reproduce as per my previous comment?

php4fan avatar Feb 06 '22 23:02 php4fan