-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Gitcoin API throws error 500 on bounties/<bountyId>/ endpoint #5307
Comments
i took a look this morning + couldnt figure how how to fix it without breaking the offset/limit functionality of the API.. is this API route advertised somewhere? its not one that the app uses to my knowledge |
Hey Kevin, I found it in the Gitcoin API documentation: I was trying to get bounty info given an ID |
got it; pls use this format https://gitcoin.co/api/v0.1/bounties/?pk=3538 in the meantime as a workaround |
Hey @owocki, I was looking at why my script wasn't working and I found out that the API is not returning the details of the bounty even with the workaround you gave me. If I call it like this: What I expect: What I get: |
got an example URL? looks like its working for me https://gitcoin.co/api/v0.1/bounties/?pk=3538 |
Maybe I didn't explain myself. |
oh ur right; here this will help: cce953d will go out in our next deploy.. |
Thank you! |
It's not returning anything back after the deploy 😅 . I tested it like this: https://gitcoin.co/api/v0.1/bounties/?pk=3538 |
@Solexplorer 3538 is not a current bounty. try this instead http://gitcoin.co/api/v0.1/bounties/?pk=9781 |
we could change this by exempting the 'pk' key at https://github.com/gitcoinco/web/blob/master/app/dashboard/router.py#L235 if ppl feel strongly about that |
Opsie my bad. Thanks for checking in |
Describe the bug
When trying to get data using a bounty id, it returns error 500:
To Reproduce
Use the gitcoin endpoint: https://gitcoin.co/api/v0.1/bounties/3538 where 3538 is the last bounty as of the time of writing, I have tried with other bounties but the result is still the same.
Expected behavior
I expect to get bounty details given a bountyId
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: