Comments (4)
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.
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.
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.
closing for inactivity/no response
from prebid-cache.
Related Issues (20)
- Redis running full after update HOT 7
- Prometheus namespace and subsystem should be allowed to be empty, like in Prebid Server
- non-empty UUID with backend PUT error HOT 4
- Amazon Keyspaces as a backend HOT 3
- Port PR from PBC-Java: cross-repo issue creation HOT 1
- Default aerospike connection HOT 2
- Port PR from PBC-Java: Dependencies: Update base docker image due to OpenJDK deprecation
- Port PR from PBC-Java: Replace dropwizard with micrometer
- Port PR from PBC-Java: Metrics: Add prefix for graphite export
- Port PR from PBC-Java: Bump dependencies
- Port PR from PBC-Java: Bugfix: Metrics fix HOT 1
- Port PR from PBC-Java: Buffer error logging updater
- Port PR from PBC-Java: Metrics: Fix issues caused by metric system update
- Potential race condition HOT 4
- No LICENSE chosen for this project HOT 2
- 400 bad request, request header or cookie too large HOT 1
- Default settings result in unacceptable combination of CORS response headers HOT 2
- Wrong counter names HOT 1
- Misleading metrics when custom key used HOT 4
- Support Redis cluster connection string HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prebid-cache.