Skip to content
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

"Failed to retrieve real time from API, falling back to local time" #85

Open
7D7-Development opened this issue Sep 7, 2024 · 4 comments · May be fixed by #84
Open

"Failed to retrieve real time from API, falling back to local time" #85

7D7-Development opened this issue Sep 7, 2024 · 4 comments · May be fixed by #84
Labels
bug Something isn't working

Comments

@7D7-Development
Copy link

7D7-Development commented Sep 7, 2024

Describe the bug
The script is failing to get the time from the API.

To Reproduce
Steps to reproduce the behavior:

  1. Make RealTimeSync true in config.
  2. Start or Restart server.
  3. Check Server Console.

Expected behavior
Real time should be synced from API and not have to fall back to local.

Screenshots
image

Questions (please complete the following information):

  • When you last updated: Fresh install of latest release.
  • Are you using custom resource? All default from a fresh qb-core install.
  • Have you renamed qb- to something custom? No.

Additional context
This issue is here:
image
Should be "https://".

EDIT:
After more testing, and changing this to https I found that the error would still occur at random, just not after every restart, as in the results before the change.

I added to the failedCount and Wait because it seems the actual deeper issue stems from the API that is being used, as it sometimes randomly can have a longer than usual delay to load the location and time information. The fix is in pull requests.

@7D7-Development 7D7-Development added the bug Something isn't working label Sep 7, 2024
@ayvaniniyisi
Copy link

I have still the same error in log "Failed to retrieve real time from API, falling back to local time".

How can we solve this issue?

@7D7-Development
Copy link
Author

I have still the same error in log "Failed to retrieve real time from API, falling back to local time".

How can we solve this issue?

I put in a pull request, the fix is there.

@BadCodePT
Copy link

Think the API is full on fail!

@ayvaniniyisi
Copy link

Think the API is full on fail!

Do you have any ideas for a alternative?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants