-
Notifications
You must be signed in to change notification settings - Fork 51
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
fmt.Sprintf call has arguments but no formatting directives #1058
Comments
The source of the issue is that the HTTP binding(s) for google.longrunning.Operations.GetOperation (in this case) isn't included in the service yaml for both APIs. Their service configs haven't been updated since mid 2020. I will send change to those files to publish just those bindings. We could do more in the generator to fail, but I wonder what Java is doing when there is no GetOperation http rule in the serviec yaml. @vam-google can you answer that? |
I have two changes open to add the missing http bindings for LROs. |
@noahdietz java does not read those values, but instead constructs the url path based on the version of the package the LRO logic is being imported from. Luckily enough all the LRO url paths follow the same general pattern (excluding the name pattern, but that does not get validated), so this works. BAsically a hack, but is simple and does the job. |
Perhaps the Go generator should do the same as a fall back in the event that the http binding isn't present... |
So I the two APIs in question had their configs fixed, which means we can attempt to generate them with REGAPIC again. Since this wasn't actually a bug in the generator, I am going to change this to |
@quartzmo another good item to pick up if you are interested, no pressure though. We can pair at some point if you'd like. |
Note, I still do believe there are more of these, but I lack my notes to know which clients. I skipped generating some APIs in the first batch due to this error. So a fix/feat will still be needed for wider rollout. |
…out HTTP binding fixes: googleapis#1058
This error has been observed when trying to generate REGAPICS. There were a handful of libraries that were manually excluded from the initial beta/alpha generation of REGAPICS due to this error and now it seems some more are starting to have it. In googleapis/google-cloud-go#6269 It was observed in both security/privateca and gaming:
Code: https://github.com/googleapis/google-cloud-go/pull/6269/files#r909626615
The text was updated successfully, but these errors were encountered: