-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Project from client (bill-stackdriver-experiment) should agree with project from resource(1054618175867). #1806
Comments
Ok, I missed the docs earlier: https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/LogEntry
|
@waprin Can you get a deeper stacktrace? The offending line isn't very helpful without the RegEx passed in. |
Update: This seems to be the correct RegEx, and it is used in only one place |
Full stacktrace at the bottom, but the issue is not with the regex ,the issue AFAICT is that the validation checks that the client project ID equals the project ID returned by the resource, which is not going to be true when the resource returns the project number instead. I have filed an internal bug about the fact that using project number interchangably with project id is bad but doubt it will get resolved soon.
|
Yeah, as you mentioned in your original post, the root cause is validating the project, I just wanted to see where the code traveled to make it there. |
@tseaver WDYT about a |
For other types which share the use of |
I'm not sure if this is a gcloud-python issue or a bug on the server-side.
Doing
list_log.entries()
gives the error:Adding some print statements reveals the reason:
LOGGER NAME IS projects/1054618175867/logs/appengine.googleapis.com%2Frequest_log
It seems some of the app engine logs return the project as the project number rather then the project ID. Note that 1054618175867 is the correct project number for the project. I do feel like there should be consistency and only the project id should be used so maybe this is a server side bug, but I'm not sure if there's any official external docs to reference. Getting the project number from a project id also might mean an extra API call is required just to do a validation.
My vote would be to temporarily disable the validation for now and follow up internally about the format, thoughts?
The text was updated successfully, but these errors were encountered: