Please sign in to post.

NaN/NaN/Na When trying to make reservations

So often I get this code when I try to make reservations in France on a website. Often after multiple trys the dates will appear.
My only thought the is that the venue is not taking reservations that far in advance, but i am now approaching 4 months and still hotels give me this response. I finally emailed hotel and was able to make reservation. Anyone else experience this? Your thoughts? I do not receive this error message when booking in US. I did see that I think they all use the same search engine.

Posted by
21159 posts

NaN/NaN/Na happens when you try to use the on-line calendar at a non-English website and you (or an automatic function of the website) are using google translate to get an English translation. English translators don't mix with calendars in other languages so you get garbage out.

Solution: Turn off google translate and make the booking in the original language. Even if you don't know the language, it is easy to figure out as they all want the same information. When are you coming, when are you leaving, how many people.

Posted by
5687 posts

NaN = Not A Number - in other words, the code for the website has a math bug in it. You should never see NaN in results on production websites.

Posted by
7054 posts

I saw this issue over and over when trying to book bus tickets in Italy. Thank you, other posters, for explaining!

Posted by
21159 posts

I have no problem using Trenitalia English website, but if I switch to Italian version and try to enter a date with translate turned on, I get NaN. Also notice that when the calendar shows, the Italian "Wednesday" has been translated to "Myself".