-
Notifications
You must be signed in to change notification settings - Fork 4k
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
t.response undefined error when purchasing orb of rebirth #13973
Comments
Hey, this is similar to an issue I worked on with Keys to the Kennels. May I work on this one as well? |
Absolutely! Assigning you. |
Hey @vanathi-g, are you making any progress on this? |
Hey! Sorry, was busy with some other stuff. I was actually having trouble reproducing the issue when I checked last. |
Weird! Are you still having problems replicating the issue? |
im also having trouble replicating the issue now, and i had gotten it before. now though, the orb just won't work on my first use. i see it available for 0 gems, i get the modal, i click buy, the page refreshes, but im still a level 112 rogue. i scrolled down to try again, and the 2nd time it worked. thats the same pattern i noticed with the error, just.. now, no error. |
Hi @vanathi-g -- are you making any progress on this? A few folks have been having problems with getting the orb to work per @saraolson's comment: they attempt to buy it for 0 gems, it doesn't work, and then they can buy it and it works--and charges them gems. |
|
Hello, I was trying to look into the issue but I'm not able to reproduce the error. I made a test account, edited it to lv 100 in mongo and then bought the orb. It worked and put me back to level 1. Also where exactly is this "t.response undefined" error supposed to show up? |
@Mighil31 the t.response undefined error shows up in the corner in a red message bubble. |
@saraolson so here's what I'm doing
@rilygreat also mentioned these
Could these be the issue? I couldn't find any place to set them. |
i just tested now and im still getting the previous behavior i commented where the first orb purchase doesn't actually work, even though an error isn't showing anymore. this time it at least didn't seem to charge me gems on my 2nd try. using firefox on an old account. went to settings > fix char values to set level to 100 for the free orb > market > buy orb there. it acts like it worked until reload, it doesn't show me a confirmation modal. but im still a level 100 mage and the 0 gem orb is still available (we have a time limit on free orb so if it worked, the orb would be 6 gems if bought again in 45 days). looking at our server analytics, only one orb of rebirth is being recorded as actually happening when i did this. here's a vid: orb_rebirth_not_working.mov |
I'm having this issue again today. Happens exactly as described by the above posters. I'm level 75. I'm trying to purchase it because it's the first day of the new year. When I click, it asks me for confirmation, I confirm, and it refreshes the page; I've tried 3 times, and the third time I noticed the "t response undefined" message in the Habitica notifications. The only thing I can think of is that I'm in a quest, but I don't think that would impact this. Firefox, I created my account in 2013, anything else you would need? |
This is happening to me today. I tried several times to purchase the orb. It seems to go through--the site refreshes, and everything is slowly reloaded, but I remain at level 101. I even tried leaving the quest I was in just in case that helped (it did not). Finally I tried it in Chromium (101.0.4951.15 (Developer Build)) rather than Firefox (109.0 build 20230109161414) and it worked. Chrome is an anti-privacy browser so it would be very nice if Firefox were fully supported. |
Another user having the problem:
|
I also had this problem and tested many times on Firefox, fully refreshing the page, signing in and out, clearing cookies/cache and kept getting the t.response is undefined error. Tried in Microsoft Edge and worked first time. Please fix this so that Firefox users can have a complete experience. Like un34s commented Chromium is anti-privacy and I would hate for Habitica to force its user to use it. |
In line with other comments here: I also receive the error when attempting to rebirth in Firefox, whereas it works in Chrome. |
I attempted to examine this issue. While I couldn't replicate the 't.response undefined' error, I discovered that when clicking the 'buy' button, a POST request to /user/rebirth and a page reload occur simultaneously. When the page reloads, any ongoing requests get aborted. Therefore, if the rebirth request isn't sent quickly enough, it gets aborted. |
Hello, I'm currently experiencing the issue. Is there a solution yet? |
@igromanru I still experience this issue in Firefox. As a workaround I just use Chrome to rebirth. 😅 Based on what @gwisp2 said above, the culprit is probably this code block, which explicitly reloads the page immediately in response to an orb of rebirth being purchased. It was introduced intentionally in #11125, in an effort to address #11114, but it seems we now have to deal with this bug instead. @HydeHunter2 @Alys Is there a way to have our cake and eat it too, maybe by adding a delay to the reload, or doing it asynchronously after the orb of rebirth POST operation has completed successfully? Or is @gwisp2's theory here incorrect? |
It worked for me on the Android Firefox app. |
The text was updated successfully, but these errors were encountered: