s-alad / toofake

View friends BeReals without posting or them knowing. Post custom BeReal's whenever. Add custom realmojis
https://toofake.lol/
MIT License
152 stars 34 forks source link

Loading forever #23

Closed Maximapple closed 1 year ago

Maximapple commented 1 year ago

Hey,

It's just loading forever after logging in...

2023-02-14 at 14 31 41@2x

Could this be because I have a lot of friends there? Not sure how many, but likely a few hundred.

CopeHard commented 1 year ago

I have the same issue... Console output displays 500 server side error

s-alad commented 1 year ago

My code is poorly optimized. I'm going to switch bereal posts fetching to client side and see if it helps

s-alad commented 1 year ago

Fixed as of most recent project version.

Maximapple commented 1 year ago

Hey @s-alad, it's not loading forever anymore but after about 5 seconds, it shows "It's quiet here, nobody has posted anything yet."

s-alad commented 1 year ago

Taking a look, BeReal notification just went off so that might have been why. I just checked on my end and it seems to be working as my friends posted. Can you double check if it still shows that for you?

Maximapple commented 1 year ago

Yeah, it's unfortunately still showing me the same message. The last BeReal time in Europe was at 5:35pm yesterday (it is currently 7am here), so there are lots of friends on my account who posted a BeReal...

s-alad commented 1 year ago

Yeah, it's unfortunately still showing me the same message. The last BeReal time in Europe was at 5:35pm yesterday (it is currently 7am here), so there are lots of friends on my account who posted a BeReal...

@Maximapple strange, seems to be working for me and a bunch of friends: might be a react issue on my part, can you check the console for me?

Maximapple commented 1 year ago

@s-alad does this help? 2023-06-24 at 07 42 09@2x

s-alad commented 1 year ago

@Maximapple Yes actually very helpful, I'm assuming you have a lot of friends who posted bereals so the server is making a very large request which exceeds NextJS's serverless limit, thus the server responds with an error of 405 instead of the content.

I've changed the limit to be double, lmk if it works now. Otherwise I'll need to look into how to handle large requests and optimization which may be above my paygrade.

Ty for the help!

Maximapple commented 1 year ago

@s-alad Great, it seems to be working now! I'll continue testing and will let you know if I run into any issues.

s-alad commented 1 year ago

@s-alad Great, it seems to be working now! I'll continue testing and will let you know if I run into any issues.

Thank you!