Giter Site home page Giter Site logo

Comments (7)

royhadad avatar royhadad commented on June 8, 2024 1

Here to shed some light on this issue 👋

The following command datree config set offline local only tells the Datree CLI what to do once it detects there is no internet connection.
The datree CLI detects a network error, and only if one is detected will it go offline.
A network error is detected in this code block

Because your network-blocking software returns a modified (and different) network error than expected, Datree does not switch to offline mode.

A quick possible patch could be to add your particular error (or some distinguishing part of it) to the errors array in the code block mentioned:
Maybe "Web Page Blocked" or "blocked" (case-insensitive)?

networkErrors := []string{"network error", "connection refused", "no such host", "i/o timeout", "server misbehaving"}

This is an open-source project, pull requests are welcomed :)

from datree.

adamdepollo avatar adamdepollo commented on June 8, 2024 1

@romanlab I believe I just grabbed the binary from the releases page.

@royhadad OK, thanks for that clarification. I will try to work on a pull request this week for the fix you suggested.

Though I wonder about the functionality of that offline option ... seems like there could theoretically be any number of error messages thrown depending on what network configurations folks have. Wouldn't it make more sense to just skip any outbound calls when the offline flag is on rather than wait for an error to happen?

from datree.

hadar-co avatar hadar-co commented on June 8, 2024

related to: #746

from datree.

adifayer avatar adifayer commented on June 8, 2024

@adamdepollo Thank you for opening this issue, we will prioritize it soon and update here once we start developing the solution :)

from datree.

romanlab avatar romanlab commented on June 8, 2024

@adamdepollo i noticed the url is pointing to our staging environment. How did you download the version you're using?

from datree.

romanlab avatar romanlab commented on June 8, 2024

@adamdepollo It's best to download via one of our install methods but if you want to use a binary from the releases, make sure you don't use one of the -rc releases as they point to our staging environment and may be less stable to use.

from datree.

adamdepollo avatar adamdepollo commented on June 8, 2024

@romanlab Ah OK good to know, I think I did pull the rc one originally but unfortunately having the same issue with the stable version :(

from datree.

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.