Giter VIP home page Giter VIP logo

Comments (10)

odscjames avatar odscjames commented on August 23, 2024

Invalid HTTP_HOST header: '46.43.2.235'. You may need to add '46.43.2.235' to ALLOWED_HOSTS.
Invalid HTTP_HOST header: '46.43.2.235:443'. You may need to add '46.43.2.235' to ALLOWED_HOSTS.

Is there a use case for this one? Currently I think the only reason we would see this is bots trying to crawl us. (In fact, on a lot of our servers we set up an default apache placeholder site for bots to see).

Invalid HTTP_HOST header: 'live.standard-search.opencontracting.uk0.bigv.io'. You may need to add 'live.standard-search.opencontracting.uk0.bigv.io' to ALLOWED_HOSTS.

www.live.standard-search.opencontracting.uk0.bigv.io is however already set up as an ALLOWED_HOSTS and an SSL cert name - for the same avoiding-bots reason as above, can we leave it as this?

from deploy.

jpmckinney avatar jpmckinney commented on August 23, 2024

Aha. Is there a way to quiet specific HTTP_HOST errors, so that we don't continually get new reports in Sentry?

from deploy.

odscjames avatar odscjames commented on August 23, 2024

I see the problem - we do have an default host in place for HTTP crawlers, but not for HTTPS crawlers - ie h t t p://46.43.2.235/ gets placeholder, h t t p s://46.43.2.235/ gets site and generates a sentry error.

We can look into that.

from deploy.

odscjames avatar odscjames commented on August 23, 2024

Look into stopping HTTPS crawlers hitting real sites and generating errors

from deploy.

jpmckinney avatar jpmckinney commented on August 23, 2024

This has been solved in a few different ways:

For now I ignored them until 2038-01-19 03:14 in Sentry.

from deploy.

jpmckinney avatar jpmckinney commented on August 23, 2024

Also occurs on Data Review Tool (and presumably any Django app with Sentry installed).

from deploy.

odscjames avatar odscjames commented on August 23, 2024

Commented in our deploy repository in OpenDataServices/opendataservices-deploy#88

from deploy.

jpmckinney avatar jpmckinney commented on August 23, 2024

I'm reconfiguring loggers.

from deploy.

jpmckinney avatar jpmckinney commented on August 23, 2024

Done and deployed. There's an open PR for standard-search. Once closed, we can resolve the open issues in Sentry.

from deploy.

Bjwebb avatar Bjwebb commented on August 23, 2024

PR for standard-search is merged now.

Looks to me like all the open issues in Sentry are gone already.

from deploy.

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.