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

Successive Requests to Server's PostsRoute Occasionally Receive Empty Post Lists #1

Closed
m-flak opened this issue Apr 8, 2020 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@m-flak
Copy link
Owner

m-flak commented Apr 8, 2020

Affected Components:


Description:

It seems that successive requests to the backend's PostsRoute at /posts will occasionally result in an empty response, but this does not always happen!

I'm not sure why this is happening, and it is extremely frustrating.

This bug causes some or all of the frontend components to fail. We'll either see the posts and an empty post-by-month list or vice versa. HOWEVER, sometimes everything works as it should.

Workaround:

Refreshing the heck out of the home page until things show up. This is unacceptable! 😠

@m-flak m-flak added bug Something isn't working help wanted Extra attention is needed labels Apr 8, 2020
@m-flak
Copy link
Owner Author

m-flak commented Apr 15, 2020

Update: From what I can tell, this appears to be caused by multiple requests being sent simultaneously by the browser to the backend's /posts route.

The developer console shows the requests sent out by the Post and MonthList components to be at the exact same time. It remains to be seen if this a result of running a local dev environment.

With that being said:

  • Determine if latency over-the-wire affects behavior in a positive way.
  • Create queue system for these requests.

@m-flak
Copy link
Owner Author

m-flak commented Apr 16, 2020

FIXED: Took a different route in solving this issue...

My solution is not the greatest, but it works. 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant