HelloMum / COMP47360-Smart-Tourist-Guide

GNU General Public License v2.0
2 stars 0 forks source link

Backend crashing after day change #118

Closed HelloMum closed 3 months ago

HelloMum commented 3 months ago

image Description: Our backend service crashes at the start of a new day when it tries to access a JSON file to find a date that does not exist in the file. This issue disrupts the service and causes downtime until manual intervention is performed.

Steps to Reproduce:

Let the backend service run through the day change. Observe the backend trying to access the JSON file for the new date. Notice the service crashing when the date is not found in the JSON file.

Expected Behavior: The backend should handle the missing date gracefully and either create an entry for the new date or log an appropriate error without crashing.

Actual Behavior: The backend crashes and requires a manual restart or fix.

HelloMum commented 3 months ago

Waiting for the next day to try to recover more information.

HelloMum commented 3 months ago

The problem is that it seems that something is still using the old json file eventhough is updated so it crashes when not finding the new date.

HelloMum commented 3 months ago

126 Should be fixed after that branch has been merged as the json files were generating in a folder that does not exist when deploying. Has been directly implemented on memory.