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

v2 RecentSearchV2 response error #108

Open
dybxin opened this issue Feb 24, 2022 · 6 comments
Open

v2 RecentSearchV2 response error #108

dybxin opened this issue Feb 24, 2022 · 6 comments

Comments

@dybxin
Copy link

dybxin commented Feb 24, 2022

maybe happend at:

resp, err := client.TweetRecentSearch(context.Background(), query, opts)
	if err != nil {
		log.Fatal(err)
		return nil, err
	}

logs:

twiiter callout status 429 UsageCapExceeded:Usage cap exceeded: Monthly product cap
@g8rswimmer
Copy link
Owner

@dybxin what version of the library are you using? v2.0.0-beta11 added rate limits to the response to help aid in this.

@dybxin
Copy link
Author

dybxin commented Feb 25, 2022

@g8rswimmer now i import version is https://pkg.go.dev/github.com/g8rswimmer/go-twitter@v1.1.4/v2.

@g8rswimmer
Copy link
Owner

@dybxin I think that I need to update the go mod in v2 to allow for it. I think that you can get the updated package with @master

@g8rswimmer
Copy link
Owner

@dybxin you should be able to get the newest version of v2 which includes spaces, lists and rate limiting

go get -u github.com/g8rswimmer/go-twitter/v2@v2.0.0-beta12

go.mod example

module twiiter-poc

go 1.17

require github.com/g8rswimmer/go-twitter/v2 v2.0.0-beta12 // indirect

@dybxin
Copy link
Author

dybxin commented Feb 28, 2022

@g8rswimmer thanks a lot, I will get back to you later.

@dybxin
Copy link
Author

dybxin commented Mar 1, 2022

@g8rswimmer today, i test the v2.0.0-beta12. unfortunately, i got error: twiiter callout status 429 UsageCapExceeded:Usage cap exceeded: Monthly product cap. i found twitter api docs https://developer.twitter.com/en/docs/twitter-api/tweet-caps. so every monthly the application total request is limit?

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

2 participants