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

"Error request entity too large" - can't join / leave / edit / end challenge or guild #1471

Closed
lefnire opened this issue Sep 8, 2013 · 67 comments
Assignees

Comments

@lefnire
Copy link
Contributor

lefnire commented Sep 8, 2013

2013-09-07T23:05:25.959760+00:00 app[web.1]: Error: Request Entity Too Large
2013-09-07T23:05:25.959760+00:00 app[web.1]:     at Object.exports.error (/app/node_modules/express/node_modules/connect/lib/utils.js:62:13)

edit by admin:

What to do if you see "request entity too large" from any action involving a challenge or a guild:

This problem occurs when guilds and challenges have many players in them.

It can be a temporary error, so try again a few hours later.

If you are trying to join a challenge, use this "Join Challenge" form. It is likely to work in many cases but sometimes might also produce an error (due to the challenge being too large or popular, not due to a bug in the form).

If you're still unable to join the challenge, please comment here and include your User ID (see step 6 of the Help -> Report a Bug instructions), the URL of the challenge or guild (the URL will have a long string of random characters in it, such as https://habitica.com/#/options/groups/challenges/3b4f33e9-727b-4b9e-b41c-babfbcdb7ca4), and the action you were trying to take (e.g., join, leave, etc).

Especially comment if you are the challenge or guild owner and are trying to edit it but can't. Tell us what changes you need to have made.

If you are trying to close a challenge and cannot because of this error, make a note of the challenge's name, its URL, and the User ID and name of the person who is the winner. Add that information here and an admin will help you award the challenge achievement and prize.

This is due to #5830

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ghost ghost assigned lefnire Sep 8, 2013
@lefnire
Copy link
Contributor Author

lefnire commented Nov 6, 2013

Happening very often right now. TMK it's not user routes, since User isn't an ngResource, meaning the full object isn't sent up with each request.

@paglias
Copy link
Contributor

paglias commented Nov 6, 2013

A group with all the members populated and 200 chat messages could be so big to break the server? Maybe if there's only a little ram avalaible

@lefnire
Copy link
Contributor Author

lefnire commented Nov 6, 2013

512 RAM. You could right actually, since it's an ngResource it also sends up the populated members - in the case of parties, that could be pretty big. If many guilds / parties are chatting at once.... ok I'll look into this possibility first

@paglias
Copy link
Contributor

paglias commented Nov 6, 2013

This could be related to #1742, given how ngResource is implemented the
only way not to send the whole model is to use class level method, not
ideal but doable
Il 06/nov/2013 19:20 "Tyler Renelle" notifications@github.com ha scritto:

512 RAM. You could right actually, since it's an ngResource it also sends
up the populated members - in the case of parties, that could be pretty
big. If many guilds / parties are chatting at once.... ok I'll look into
this possibility first


Reply to this email directly or view it on GitHubhttps://github.com//issues/1471#issuecomment-27899136
.

@lefnire
Copy link
Contributor Author

lefnire commented Nov 6, 2013

Class-level method is just fine, IMO. Good call!

@paglias
Copy link
Contributor

paglias commented Nov 6, 2013

Done for groups in a4951e1, for everything except for $join which doesn't send anything big to the server and $save, we could remove the chat from it before sending but:

a-) we can't set group.chat = undefined untile we copy the group object to another var with angular.copy before doing that
b-) if something is updated server-side we would need to manually update the client side UI, with $save it's done automatically by angular

Will look into doing the same for challenges later

@lefnire
Copy link
Contributor Author

lefnire commented Nov 8, 2013

awesome! you've covered most of these cases. I haven't seen the error for a while now, I'm going to close and re-open if I see again

@lefnire lefnire closed this as completed Nov 8, 2013
@lefnire lefnire reopened this Jan 13, 2014
@Alys Alys changed the title Request entity too large "Error request entity too large" - can't join / leave / edit / end challenge Jun 16, 2015
@Typhlosaurus
Copy link

I was #5554 :-) I'm getting this after switching to a larger party and trying to join a large, non-party, challenge.

Reloading the browser and retrying, waiting for a day, reloading and re-trying not helping.

@Alys Alys changed the title "Error request entity too large" - can't join / leave / edit / end challenge "Error request entity too large" - can't join / leave / edit / end challenge or guild Jul 27, 2015
@marrowmalk
Copy link

I've been getting this error when trying to join a guild challenge for almost a week now — I've waited hours/days between trying again and it's still happening, unfortunately. The challenge in question is here: https://habitrpg.com/#/options/groups/challenges/b0060b72-9b8c-48cc-bc32-c326351c5b7f

@crookedneighbor
Copy link
Contributor

@marrowmalk Are you still unable to join the challenge? If so, post your user id here and I'll add you. You can find it in Settings > API. Be sure to only copy the User ID and not your API Token.

@marrowmalk
Copy link

Thanks so much! I am in fact still not able to join it. My user ID is
41596adf-4384-4600-ba96-6db7d5aa5294

On Saturday, August 8, 2015, Blade Barringer notifications@github.com
wrote:

@marrowmalk https://github.com/marrowmalk Are you still unable to join
the challenge? If so, post your user id here and I'll add you. You can find
it in Settings > API https://habitrpg.com/#/options/settings/api. Be
sure to only copy the User ID and not your API Token.


Reply to this email directly or view it on GitHub
#1471 (comment).

@crookedneighbor
Copy link
Contributor

@marrowmalk You should be added now, can you double check and make sure you received all the tasks?

@CantarellaMiyani
Copy link

Hi! I'm also getting this message when attempting to join a challenge, it's remained an issue after multiple reloads, and in multiple browsers. Challenge is here: https://habitica.com/#/options/groups/challenges/3b82f463-2e50-406c-9ec6-37b3cbfdfddf and my User ID is 7866d88c-1192-4bc2-b70a-87e3414397a2 . Any advice would be appreciated.

@crookedneighbor
Copy link
Contributor

@CantarellaMiyani I've aded you to the challenge.

@CantarellaMiyani
Copy link

Thank you so much!

On Sun, Aug 9, 2015 at 9:57 AM, Blade Barringer notifications@github.com
wrote:

@CantarellaMiyani https://github.com/CantarellaMiyani I've aded you to
the challenge.


Reply to this email directly or view it on GitHub
#1471 (comment).

@marrowmalk
Copy link

Have been added successfully, thank you!

On Sat, Aug 8, 2015 at 4:44 PM, Blade Barringer notifications@github.com
wrote:

@marrowmalk https://github.com/marrowmalk You should be added now, can
you double check and make sure you received all the tasks?


Reply to this email directly or view it on GitHub
#1471 (comment).

@minta98
Copy link

minta98 commented Aug 16, 2015

I'm having this problem too after trying to join this challenge:
https://habitica.com/#/options/groups/challenges/f5469002-b21d-4657-8450-2d194e846a73
my ID is 25dbf1f7-c126-482b-b597-7544dfe36ad8
I had the same problem with another challenge, but the day after I was able to join!
Is there anything I can do? Thanks

@Alys
Copy link
Contributor

Alys commented Dec 4, 2015

@UserAns22 The issue isn't dead. At the top of issues in GitHub, there's a coloured button that says either open or closed to indicate an issues status, and this one says open. Even when issues are closed, we still receive emails for all comments made. I've added you to the challenge.

@UserAns22
Copy link

Thank you so much!

@Rannera
Copy link

Rannera commented Dec 17, 2015

Hi! I can't join this challenge: https://habitica.com/#/options/groups/challenges/e6c1775b-c358-4e35-be89-c63a24d56322

Can you help me? My user ID is: b768b420-e492-4adb-bd06-324da530ebce

@Alys
Copy link
Contributor

Alys commented Dec 17, 2015

@Rannera That challenge was actually started more than a year ago and is due to be closed. The problem with popular challenges is that when many people join, the challenge becomes so large that it no longer functions properly, leading to the errors you saw. At that stage, it's also impossible for the challenge owner to close it. When we find such challenges, we typically close them on behalf of the owner. We weren't aware of this one, so I'll add it to my list of challenges to be closed. I'm very sorry about the inconvenience! It will be a few hours at least before I close it, so you might like to write down the current tasks to make your own personal versions of them.

@Rannera
Copy link

Rannera commented Dec 18, 2015

Have done, thanks! :)

@cmlobue
Copy link

cmlobue commented Dec 29, 2015

I've been trying for four days to end this challenge. Same error every time.

Name: Fall 2015 School Habit Challenge
URL: https://habitica.com/#/options/groups/challenges/7b9e1810-3d78-45db-abf5-7045cbe924cf
Award: 3 gems
Winner: moiseaux

Thank you!

@Alys
Copy link
Contributor

Alys commented Dec 29, 2015

@cmlobue Sorry about that! I think that challenge is actually due to be closed, and it's likely that the only reason it's still open is that the owner gets a similar error when they try to award a winner. I'll contact them about it. If they say that the challenge should be left open longer, I'll add you to it.

@Alys
Copy link
Contributor

Alys commented Dec 29, 2015

@cmlobue Can you please just completely ignore that idiotic message from me? :) I'm so used to people asking to join challenges that I didn't read it properly.... I'll close it for you now and award the prize to the winner. Thanks for letting us know about this. :)

@cmlobue
Copy link

cmlobue commented Dec 29, 2015

@Alys I am the owner. I know it's odd that I'm not also participating, but I am not a student myself.

@sadrithmora
Copy link

Hello,

I just tried to shut down the "2015 Movie Challenge" in the Tavern and award 5 gems to the winner, BlackUmbral. I did get an error, I don't remember what it was, but it did say something in the text about try reloading. When I reloaded, it seemed the challenge had disappeared for me, but the tasks remained with no indication they were closed. I did the "unclick done tasks" trick for broken challenges to be able to remove tasks, and it worked, but said that the owner had left the challenge and didn't show a winner. I'm not sure if it closed properly for anyone else, but the challenge did have a lot of users (~1300?).

I believe the URL for the challenge was https://habitica.com/#/options/groups/challenges/638bf40e-49c4-445b-abfa-e40301c62ae9 but not positive as I can't go back and check now. I didn't get the user ID of the winner either. My user ID is 70665a76-c696-4e3d-a105-c9735640f1b0.

@Alys
Copy link
Contributor

Alys commented Jan 5, 2016

Sorry about that @sadrithmora! I've checked and the challenge has been closed. BlackUmbral does have the gems and the achievement.

@Typhlosaurus
Copy link

I'm afraid the Mobile App Download Challenge (https://habitica.com/#/options/groups/challenges/c14e8130-b22f-4e60-9bcb-7a34e5756829) is going to flood this issue with reports. Certainly happening to me, so I imagine it will happen to a lot of others too (https://habitica.com/#/options/groups/challenges/c14e8130-b22f-4e60-9bcb-7a34e5756829).

POST https://habitica.com/api/v2/challenges/c14e8130-b22f-4e60-9bcb-7a34e5756829/join 500 (Internal Server Error)(anonymous function)
 @ app-027344d3.js:6s
 @ app-027344d3.js:6f
 @ app-027344d3.js:6j
 @ app-027344d3.js:7(anonymous function)
 @ app-027344d3.js:7j.$eval
 @ app-027344d3.js:7j.$digest
 @ app-027344d3.js:7j.$apply
 @ app-027344d3.js:7(anonymous function)
 @ app-027344d3.js:8o.event.dispatch
 @ app-027344d3.js:2r.handle
 @ app-027344d3.js:2
app-027344d3.js:32 Object {data: Object, status: 500, config: Object, statusText: "Internal Server Error"}responseError
 @ app-027344d3.js:32j
 @ app-027344d3.js:7(anonymous function)
 @ app-027344d3.js:7j.$eval
 @ app-027344d3.js:7j.$digest
 @ app-027344d3.js:7j.$apply
 @ app-027344d3.js:7s
 @ app-027344d3.js:6w
 @ app-027344d3.js:6y
 @ app-027344d3.js:6

Looking at the request, it includes full descriptions of all 1848 current members!

@sryshti
Copy link

sryshti commented Feb 2, 2016

Yes, I'm having the same issue with the Mobile App Download challenge
https://habitica.com/#/options/groups/challenges/c14e8130-b22f-4e60-9bcb-7a34e5756829

Already tried reloading and waiting a few hours and trying again.

@Alys
Copy link
Contributor

Alys commented Feb 2, 2016

@sryshti @Typhlosaurus There's a new copy of the challenge at https://habitica.com/#/options/groups/challenges/1aa1adbb-0df2-4bd0-a0df-590d4021b6fa so please join that one.

@Typhlosaurus
Copy link

Thanks @Alys - my concern was not so much getting on the challenge as that an easy to complete and well publicised challenge like this will display an error message to a lot of people - most of whom probably won't report it here.

@Alys
Copy link
Contributor

Alys commented Feb 2, 2016

@Typhlosaurus The old challenge now has a link to the new one so all players can find it.

@Typhlosaurus
Copy link

Great.

On 2 February 2016 at 23:26, Alys notifications@github.com wrote:

@Typhlosaurus https://github.com/Typhlosaurus The old challenge now has
a link to the new one so all players can find it.


Reply to this email directly or view it on GitHub
#1471 (comment).

@DaBigKahuna
Copy link

User ID: da8b6751-8eec-4a7f-8630-cebb87df6b45

I'm getting this error when I try to start a Party Quest. I can't find a unique URL for the Quest.
Try multiple browsers on 3 different computers.

@Alys
Copy link
Contributor

Alys commented Feb 29, 2016

@DaBigKahuna It's because the party is very large (125 members) and the site is under more load than usual at the moment, so when the site tries to update all the party members' accounts with the quest information, it times out. Please try again in a couple of hours and tell us if it still doesn't work.

Note that this is probably going to happen again in future, due to the size of the party. I recommend that the party leader removes inactive players, which will help to speed up all actions involving the party, and should give better site performance for all party members. It might also allow quests to start automatically since active players will accept or reject the quest invitations. If the leader wants to, I can remove the players that haven't logged in to Habitica for a certain number of days or weeks - the leader can choose how long. If the leader wants me to do this, they should PM me within Habitica so that I can confirm from their User ID that they are the leader. Note that this action won't delete the accounts of the inactive players; it will just remove them from the party.

@robcthegeek
Copy link

Any/everyone that has been trying to join a challenge - please check this out.

Hope it helps!

@melissamcewen
Copy link
Contributor

melissamcewen commented Apr 19, 2016

Can someone help me end this challenge?

Nevermind: Forked @robcthegeek 's form to end it
https://jsfiddle.net/0LtsfpzL/1/

@crookedneighbor
Copy link
Contributor

This should be fixed with the v3 api. If it is not, please report here.

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