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

Provide a better error message when posting by API without having passed the ethical consent funnel #228

Open
tanius opened this issue Nov 10, 2019 · 0 comments
Assignees

Comments

@tanius
Copy link
Member

tanius commented Nov 10, 2019

Currently, when trying to use the posts.json API endpoint with an Admin API key (and probably the same with a User API key as well), the response status will be "403 Forbidden" and the response body will contain the following JSON:

{
    "errors":["You are not permitted to view the requested resource."],
    "error_type":"invalid_access"
}

That's hard to debug. Please provide a hint that this error happened because of missing ethical consent (our field edgeryders_consent).

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