GET HTTP 404 error while trying to access MarketPlace endpoint #24864
-
Hi! So I am trying to access this endpoint here: Basically, I would like to check whether or not a user is actively subscribed to one of the my app’s plans. But unfortunately, I keep on receiving this as an error message: “Octokit::NotFound - GET https://api.github.com/marketplace_listing/accounts/123456: 404 - Not Found // See: https://developer.github.com/v3/apps/marketplace/#check-if-a-github-account-is-associated-with-any-marketplace-listing:” I’m coding in Ruby, using the official Octokit library. Here’s my code:
I’ve tried replacing the endpoint with the stubbed endpoint, and it works fine. The documentation mentioned that requests that require authentication will return 404 Not Found, but I don’t know exactly is wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If I’m understanding correctly what you’re doing, the documentation states also that you’ll get a 404 Not Found when the account has not purchased the listing. Given that you’re using a random account ID, I would assume that the random account ID has not purchased your listing and 404 would be the expected response. Let me know if I’ve misunderstood. |
Beta Was this translation helpful? Give feedback.
-
That was the problem. Thank you! |
Beta Was this translation helpful? Give feedback.
If I’m understanding correctly what you’re doing, the documentation states also that you’ll get a 404 Not Found when the account has not purchased the listing. Given that you’re using a random account ID, I would assume that the random account ID has not purchased your listing and 404 would be the expected response.
Let me know if I’ve misunderstood.