-
Notifications
You must be signed in to change notification settings - Fork 4
[Error] Issue with order that include "Mittagsangebote" #29
Comments
#23 is not related. You’re having problems with what is internally called "replay", i.e. putting every item of each user into a single basket on pizza.de. They’re having problems that the actual submission to pizza.de fails, after the replay is already over. I’ve recently added a fix for certain order types which produced errors awfully similar to the ones you experience. I think I forgot to update the public instance in pizza.yrden.de, though. Can you share your Basket-ID, so I can have a look? |
(updated the pizza.yrden.de instance) |
Thanks for the quick reply! |
Okay, found it. I think HipsterPizza should/could work around the error message. If you’re going to submit the basket outside of the allowed timeframe, there is little I can do, though. |
I just had a look. It works for me as I described above. If the group basket contains a Mittagsmenü and a regular order, the regular order ends up in the basket at the end. The Mittagsmenü is not added though, and HipsterPizza simply says that it could not add that item (as expected) with the Pizza.de error message in the background. I would not remove the pizza.de message, because it gives you insight into why HP couldn’t replay properly. Did you by any chance try to place your order outside of the allowed times? I accidentally overwrote your original submission time on accident, so I can’t check :/ |
I got it working once but now having the issue again (at the same time): Only "Krupuk" was added this time. To your question. I can't remember exactly but think I created the basked before the allowed times, but the members added them due the allowed times. Thanks a lot for your fast reply! And sorry for my bad spelling (wrote from smartphone) |
I’m mainly interested in when you tried to replay (“copy order” or “submit basket”), because that’s where/when it fails. Can you share the basket id again, so I can check for sure? My problem is that I’m not really sure how to debug without actually playing around. I’ll bring my laptop to work tomorrow and see if I can find the issue. If you try to replay tomorrow, can you open your developer console (do you know how?) and copy&paste all the information that is printed there. HipsterPizza is a lot more verbose there. |
So, I’ve had a deeper look at how pizza.de decides to show that dialog. I didn’t decipher every little detail, that’d be too much effort. The parts I checked look fine and check that the order is being made in the allowed time block. You can open your browser’s console on a pizza.de page either directly or via pizza.yrden.de and execute this:
If it returns The first parameter is a bitfield of weekdays with the most significant bit set to 1 for some reason. The next two are obviously times (include leading 0, e.g. I’m definitely going to need more details from you. Please include the console output while ordering and what the above snippet outputs for different times. Also include your computer’s time (or use |
Just replayed your originally mentioned basket. It works fine. |
It seems to work pretty good. I tested it right now at 10 o'clock german time and pizza.de said I can preorder even if the shot is not opened. Here is a screenshot with my date and your code: I'll try it again out of this date and see what happens. But so far all looks good. If this works (and will work good with our next order) I'll close the issue. Thanks a lot for your fast replies and good support / explenations. |
for documenting purposes: order sent on 2015-01-16 11:15:10 +0100 |
were there any warnings from pizza.de? I.e. was there another "Mittagsangebote sind nur von 9-14:30 gültig" or some such? I’m not really sure what causes this :/ |
okay, found the issue. HipsterPizza only loosely follows (read: ignores) caching instructions given from third party providers. This is done to alleviate the fact that every request passes through HipsterPizza. Pizza.de does an initial time sync with the server, and stores the offset between local and server time… using the cached file. This obviously breaks the timing logic. |
I’ve updated the pizza.yrden.de instance once more. It now includes the fix for the caching and should allow you to make orders as expected. Please let me know if this fix works for you. |
Sorry for not replying that long. We tried it once again and had that issue again. There was always the warning you described before. Any idea on that? |
You mean the one from pizza.de? I thought I had this fixed with the patch in d8fefce. But apparently not so. I can try to look at this again and hopefully find something, but I'm not really sure what I'm looking for. It also doesn't help that I'm usually at work when I could actually try this for myself, so, yeah :( |
I couldn't post the order and received the following error:
I also received the same message from pizza.de when trying to edit an order with
Mittagsangebote
and then the order was empty.Might be related to #23 ?!
The text was updated successfully, but these errors were encountered: