Skip to content

Conversation

fernandogutierrez27
Copy link

Following the Automate multi-container Kubernetes deployments with Azure Pipelines module, when I reached to the last step, the Leaderboard API was working fine, but the web couldn't be displayed because an error.

image

I debugged the application locally and found a few issues related to the LeaderboardResponse deserialization:

  1. JsonPropertyName attributes are missing in LeaderboardResponse class, so when JsonSerializer try to deserialize it, just returns 0 or null values.
  2. JsonPropertyName attributes are missing in ScoreProfile struct, so when JsonSerializer try to deserialize the LeaderBoard.Scores property just returns null values.
  3. The ScoreProfile struct use Score and Profile as fields, not properties. So, JsonSerializer must be configured to IncludeFields = true, otherwise the returned value for Score and Profile is null.

@ghost
Copy link

ghost commented Jun 28, 2021

CLA assistant check
All CLA requirements met.

@kasunsjc
Copy link

Please merge the pull request. without this app is not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants