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

Time sync doesn't work because of null connectionURL #2465

Closed
taoeffect opened this issue Dec 16, 2024 · 0 comments
Closed

Time sync doesn't work because of null connectionURL #2465

taoeffect opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
App:Frontend Kind:Bug Kind:Core Anything that changes or affects the fundamental core data structures & design of the application. Level:Advanced Priority:High

Comments

@taoeffect
Copy link
Member

taoeffect commented Dec 16, 2024

Problem

GET /assets/js/null/time HTTP/1.1

this.config.connectionURL is null in time-sync.js:

const syncServerTime = async function () {
  // Get our current monotonic time
  const newMonotonicBase = performance.now()
  // Now, ask the server for the time
  const time = await fetch(`${this.config.connectionURL}/time`, { signal: this.abortController.signal })

Resulting in error:

Error re-syncing server time; will re-attempt in 5s Error: Error fetching server time
    at Object.syncServerTime (time-sync.js:30:23)

Solution

Fix.

It could be because calling chelonia/reset in setupChelonia before /connect.

@taoeffect taoeffect added Kind:Bug App:Frontend Priority:High Level:Advanced Kind:Core Anything that changes or affects the fundamental core data structures & design of the application. labels Dec 16, 2024
corrideat added a commit that referenced this issue Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App:Frontend Kind:Bug Kind:Core Anything that changes or affects the fundamental core data structures & design of the application. Level:Advanced Priority:High
Projects
None yet
Development

No branches or pull requests

2 participants