Giter Club home page Giter Club logo

stackit-argus-cli's People

Contributors

akliek avatar derchrisp avatar mathias-darscht avatar renovate[bot] avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

stackit-argus-cli's Issues

Unhelpful error message "something went wrong"

The CLI tool hides error messages from the API and replaces them with an unhelpful message like

Error: something went wrong creating the alert config receiver

Even the debug mode with -d doesn't output the error message or response body. I have to manually use curl in order to get the correct output

hahnpa@SIT-SMBP-NQM9NV _alerting % stackit-argus-cli create receiver -f engineering_email_receiver.json -d    
create alert config receiver command called
url to call - https://argus.api.eu01.stackit.cloud/v1/projects/b5e*****-****-****-****-********5c45/instances/a1bb*****-****-****-****-********68b0/alertconfigs/receivers
response status:  400 Bad Request
Error: something went wrong creating the alert config receiver
hahnpa@SIT-SMBP-NQM9NV _alerting % curl -H "Authorization: Bearer ey*****PA" -d @engineering_email_receiver.json https://argus.api.eu01.stackit.cloud/v1/projects/b5e*****-****-****-****-********5c45/instances/a1bb*****-****-****-****-********68b0/alertconfigs/receivers
{"message":"The number of alert receivers exceeded the limit from the plan"}

Please either parse the error message from the API and include it in the output, or include the actual response body in the debug output.

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.