(using visual studios 2022)
I’m writing code to create a website where users can input a date, then can choose either Daily results to see data visualization for that specific day, or monthly, where users can see data visualization that acts as an average for the month according to the variable’s value at each hour of the day.
The issue is that after the user tries to interact several times with the website, the monthly image won’t load anymore, and instead a local host refused to connect error appears.
I have the website working, where the user can successfully go back and forth between the pages, and the daily graph is perfect. However, if the user selects monthly, the data will visualize the first time, but if the user goes back to the homepage, inputs a day, and selects monthly again, first the image won’t load,and after refreshing the page, either the image will load, or “local host refused to connect” error will show. The issue isn’t internet connection, that’s working fine, the port should be correct, and the firewall isn’t the problem.
The functions to generate the two are effectively the same, the only difference is monthly has further filtering in its dataset.