-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged
Milestone
Description
Description
Google.Apis.Gmail.v1 call to GmailService.Users.GetProfile("someId") fail with strange exception:
Google.GoogleApiException: Parameter validation failed for "userId" : The parameter value must be a non-empty string
Only on .NET9 + <TieredCompilation>false</TieredCompilation> (.NET8 in any combinations and .NET9 + <TieredCompilation>true</TieredCompilation> works normally).
Reproduction Steps
- Build repro app.
- Run .Net9 binary to get an exception and .Net8 to get normal result.
Expected behavior
Must work without Parameter validation failed exception. Repro app must output "Unauthorized" in console.
Actual behavior
Unhandled exception. The service gmail has thrown an exception.
No HttpStatusCode was specified.
No error details were specified.
Google.GoogleApiException: Parameter validation failed for "userId" : The parameter value must be a non-empty string
at Google.Apis.Requests.ClientServiceRequest`1.AddParameters(RequestBuilder requestBuilder, ParameterCollection inputParameters)
at Google.Apis.Requests.ClientServiceRequest`1.CreateBuilder()
at Google.Apis.Requests.ClientServiceRequest`1.CreateRequest(Nullable`1 overrideGZipEnabled)
at Google.Apis.Requests.ClientServiceRequest`1.ExecuteUnparsedAsync(CancellationToken cancellationToken)
at Google.Apis.Requests.ClientServiceRequest`1.ExecuteAsync(CancellationToken cancellationToken)
at GmailGetProfile.Program.Main(String[] args) in ...GmailGetProfile\Program.cs:line 16
at GmailGetProfile.Program.<Main>(String[] args)
Regression?
Yes it's works in .NET8.
Known Workarounds
No.
Configuration
SDK: 9.0.100-rc.2.24474.11
Runtime: 9.0.0-rc.2.24474.4
OS: Win11 23H2
Other information
No response
Metadata
Metadata
Assignees
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged