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

LogAnalytics - ListLabelPriorities - conversion failure #148

Open
jbcintra opened this issue Nov 29, 2022 · 3 comments
Open

LogAnalytics - ListLabelPriorities - conversion failure #148

jbcintra opened this issue Nov 29, 2022 · 3 comments
Labels
Logging Analytics Issue pertains to the Logging Analytics

Comments

@jbcintra
Copy link

Hi, as part of my audit tooling, I've been extending it into the LA service as we launch them.
calling ListLabelPriorities is failing at the output level, before any form of JSON conversion etc.

Both calls fail:
var request = new ListLabelPrioritiesRequest() { NamespaceName = namespaceName };

call type 1
var response = _client.Paginators.ListLabelPrioritiesResponseEnumerator(request);
call type 2
var response = _client.ListLabelPriorities(request);

So code does not pass beyond either of those call formats.

Inner Exception 2:
JsonSerializationException: Error converting value "NONE" to type 'Oci.LoganalyticsService.Models.LabelPriority'. Path 'items[0]', line 1, position 16.

Inner Exception 3:
ArgumentException: Could not cast or convert from System.String to Oci.LoganalyticsService.Models.LabelPriority.


via CLI
oci log-analytics label list-label-priorities --namespace-name --profile

returns ...
{
"data": {
"items": [
{
"priority": null
},
{
"priority": null
},
{
"priority": null
},
{
"priority": null
}
]
}
}

@github-anurag
Copy link
Member

@jbcintra
Thanks for reporting this issue. We will investigate and let you know our findings.

@github-anurag
Copy link
Member

@jbcintra
This looks like an issue with the service response at initial glance. We will reach out to the Log Analytics team to further investigate this issue.

@jbcintra
Copy link
Author

Thanks @github-anurag

@github-anurag github-anurag added the Logging Issue pertains to the Logging service label Nov 29, 2022
@github-anurag github-anurag added Logging Analytics Issue pertains to the Logging Analytics and removed Logging Issue pertains to the Logging service labels Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Logging Analytics Issue pertains to the Logging Analytics
Projects
None yet
Development

No branches or pull requests

2 participants