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

Add mechanism to block until page created #20

Closed
SamWhited opened this issue Dec 28, 2019 · 1 comment
Closed

Add mechanism to block until page created #20

SamWhited opened this issue Dec 28, 2019 · 1 comment

Comments

@SamWhited
Copy link
Contributor

Overview

When creating a new page with the API, and then attempting to pin it, pinning fails because the new post isn't yet created. It sometimes takes a few seconds after the request to create the page has returned before the page actually exists.
It would be nice if the API either blocked and only returned the request when the post actually existed and could be manipulated, or if there was a mechanism to wait until a post existed (short of polling in a loop and hammering your servers until we get a page back).

I couldn't find any documentation that mentioned that page creation was eventually consistent, so if this is unintentional consider this a bug report instead of a feature request.

@SamWhited
Copy link
Contributor Author

I can't reproduce this today, despite the fact that it was happening when I first wrote (but forgot to submit) this issue a few days ago. Going back to try and figure this out and will reopen if it's actually a problem.

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

1 participant