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

Invalid rule error from API GET /score #251

Open
carlbarrdahl opened this issue May 27, 2023 · 2 comments
Open

Invalid rule error from API GET /score #251

carlbarrdahl opened this issue May 27, 2023 · 2 comments

Comments

@carlbarrdahl
Copy link

Hi! I'm working on a faucet that uses Gitcoin Passport for bot detection.
I have followed the quick-start guide but not getting it to work as expected. The passport submit returns an object saying it's processing and the next time I query get score I get this response:

{
  "address": "0x...",
  "score": null,
  "status": "ERROR",
  "last_score_timestamp": null,
  "evidence": null,
  "error": "Invalid rule"
}

Same error message from https://api.scorer.gitcoin.co/docs#/Score%20your%20passport/registry_api_v1_get_score

I have tried creating several scorers with different settings but same issue.

It seems to fail on these lines:
https://github.com/gitcoinco/passport-scorer/blob/6f6be44e750cadac9e7ceb1b5e80e80b6899fa8b/api/registry/tasks.py#L126-L127

Would appreciate some help.

@0xZakk
Copy link
Contributor

0xZakk commented Jun 1, 2023

@carlbarrdahl Can you give this a shot again? The team patched a bug that should have fixed this

@carlbarrdahl
Copy link
Author

Works now! Thanks @0xZakk!

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