Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

none of producers registered. try application/x-www-form-urlencoded #2

Open
przmv opened this issue Apr 19, 2018 · 0 comments
Open

Comments

@przmv
Copy link

przmv commented Apr 19, 2018

Trying to run the example from README:

package main

import (
	"context"
	"log"

	"github.com/AlekSi/pointer"
	gamp "github.com/olebedev/go-gamp"
	"github.com/olebedev/go-gamp/client/gampops"
)

func main() {
	client := gamp.New(context.Background(), "UA-123456789-1")
	err := client.Collect(
		gampops.NewCollectParams().
			WithCid(pointer.ToString("42")).
			WithT("event").
			WithEc(pointer.ToString("Category")).
			WithEa(pointer.ToString("Action")),
	)
	if err != nil {
		log.Fatal(err)
	}
}

but got the following error:

$ go run main.go
2018/04/19 20:31:23 none of producers: map[application/json:0x71ea60 application/xml:0x71f710 text/plain:0x71f030 application/octet-stream:0x71e280] registered. try application/x-www-form-urlencoded
exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant