Coder Social home page Coder Social logo

Comments (4)

muncha avatar muncha commented on July 30, 2024

I got this to build through a series of three errors, like this:

zroop:prebid-cache jim$ go test
# github.com/prebid/prebid-cache/endpoints
endpoints/put.go:89:42: multiple-value uuid.NewV4() in single-value context

Set up a temp variable to hold the double return values, checked for an error, and set the uuid if none.

tmpUUID,err := uuid.NewV4()
if err != nil {
	logrus.Error("Failed to generate uuid")
	return
} else {
	resps.Responses[i].UUID = tmpUUID.String()
}

……

zroop:prebid-cache jim$ go test
# github.com/prebid/prebid-cache
./main.go:37:31: too many arguments in call to tollbooth.NewLimiter
	have (int64, time.Duration, *limiter.ExpirableOptions)
	want (float64, *limiter.ExpirableOptions)

Removed the “time” argument
…….

# github.com/prebid/prebid-cache
./main.go:37:46: cannot use viper.GetInt64("rate_limiter.num_requests") (type int64) as type float64 in argument to tollbooth.NewLimiter

Change to GetFloat64
…….

from prebid-cache.

dbemiller avatar dbemiller commented on July 30, 2024

hey @muncha ... are you using Glide to manage your dependencies here?

Those errors look like API changes to external libraries. If you just ran go get to fetch them, then there's a very good chance you're building with newer versions than the ones which the project intends to use.

For more info, see: https://github.com/Masterminds/glide

from prebid-cache.

dbemiller avatar dbemiller commented on July 30, 2024

Also worth noting, you probably don't need Prebid Cache in order to test your bidder.

The Cache isn't used unless you set request.ext.prebid.cache.bids in the HTTP request payload... and since all of the Cache-related code is handled by the PBS core code anyway, there's not much value in setting that just to see if your Bidder works.

from prebid-cache.

dbemiller avatar dbemiller commented on July 30, 2024

closing for inactivity/no response

from prebid-cache.

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.