Code Monkey home page Code Monkey logo

Comments (7)

github-actions avatar github-actions commented on July 26, 2024

Thank you for your feedback. Tagging and routing to the team member best able to assist.

from azure-sdk-for-java.

alzimmermsft avatar alzimmermsft commented on July 26, 2024

Thanks for reporting this @xytroot, looks like a dependency conflict issue to me. Mind adding a direct dependency on com.azure:azure-core:1.49.0 into your application or reorder your current dependencies to include azure-monitor-query first (so that Maven resolves dependencies in a different order).

From just the snippet of your POM you shared there is a dependency diamond on azure-core where azure-resourcemanager-redis will resolve to azure-core:1.48.0 but the azure-identity and azure-monitor-query dependencies will resolve to azure-core:1.49.0. But since the Redis dependency is first its resolution will take precedent, which I believe is the root of this problem.

from azure-sdk-for-java.

github-actions avatar github-actions commented on July 26, 2024

Hi @xytroot. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

from azure-sdk-for-java.

xytroot avatar xytroot commented on July 26, 2024

@alzimmermsft Still can't work with the same error

from azure-sdk-for-java.

xytroot avatar xytroot commented on July 26, 2024

image
From the stack trace, I think maybe it has something to do with this annotation @JsonProperty(value = "timespan", required = true) within MetricsResponse class, we need to find out why 'timespan' is missing.
image

from azure-sdk-for-java.

xytroot avatar xytroot commented on July 26, 2024

After adding these permissions to my azure app, this problem gone:

Microsoft.Insights/Metrics/read
Microsoft.Insights/MetricDefinitions/read

I think the error msg needs improvement.

from azure-sdk-for-java.

srnagar avatar srnagar commented on July 26, 2024

@xytroot thanks for confirming that adding permissions resolved the issue. I agree that the error message could have been better here. I will follow up with the Azure Monitor service team to share this feedback. Thank you!

from azure-sdk-for-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.