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

csharp SDK v4.0. Generated Code Contract Issue #1336

Open
idukic opened this issue Jul 14, 2023 · 0 comments
Open

csharp SDK v4.0. Generated Code Contract Issue #1336

idukic opened this issue Jul 14, 2023 · 0 comments
Labels
bug Regression or bug c# C# SDK issues p3 Priority 3

Comments

@idukic
Copy link

idukic commented Jul 14, 2023

ERROR: The given key 'client_id' was not present in the dictionary.

Trying to get c# example working, but struggling with auth.
Looking at the source code, there's an ApiSettings class that holds base URL, timeout and few other properties, but login code in AuthSession tries to read client id and secret from that type, and it doesn't contain those properties! Looks like generated code or contract is broken, maybe some mismatch between version 3 and 4?

AuthSession type:
https://github.com/looker-open-source/sdk-codegen/blob/main/csharp/rtl/ApiSettings.cs

Reading of key that doesn't exists:
https://github.com/looker-open-source/sdk-codegen/blob/main/csharp/rtl/AuthSession.cs#L140

var clientId = section["client_id"].ToString();

Would appreciate any help with this.

@github-actions github-actions bot added need triage p3 Priority 3 labels Jul 14, 2023
@drstrangelooker drstrangelooker added bug Regression or bug c# C# SDK issues and removed need triage labels Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Regression or bug c# C# SDK issues p3 Priority 3
Projects
None yet
Development

No branches or pull requests

2 participants