Git Product home page Git Product logo

Comments (3)

dsnet avatar dsnet commented on May 7, 2024

I just tried running this on my machine and with the url set to something like "http://google.com" it printed the following:

safebrowsing: 2017/01/04 09:37:36 database.go:100: no database file specified
safebrowsing: 2017/01/04 09:37:38 database.go:291: database is now healthy
Results: [[]]

I'm surprised that you get 404 errors since nothing in your Config struct changed the ServerURL field.
What revision are you running on? Do you have any local changes?

from safebrowsing.

inge4pres avatar inge4pres commented on May 7, 2024

Hi @dsnet thanks for your support.
I grabbed the code with go get github.com/google/safebrowsing and did no changes to the source code.
Tried again now with the same config and got

=== RUN   TestCheckMaliciousURL
safebrowsing: 2017/01/07 12:26:40 database.go:100: no database file specified
safebrowsing: 2017/01/07 12:26:40 database.go:186: ListUpdate failure: safebrowsing: unexpected server response code: 404
safebrowsing: 2017/01/07 12:26:40 safebrowser.go:365: inconsistent database: safebrowsing: unexpected server response code: 404
--- FAIL: TestCheckMaliciousURL (0.14s)
	post_test.go:26: safebrowsing: unexpected server response code: 404

with a valid URL with trailing slash.
I am on Windows, maybe this is the issue? :)

from safebrowsing.

inge4pres avatar inge4pres commented on May 7, 2024

I resolved it by removing the ThreatList from the config, don't know why exactly.

from safebrowsing.

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.