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

Site struggles to connect with client #232

Open
PropGit opened this issue Nov 14, 2019 · 11 comments
Open

Site struggles to connect with client #232

PropGit opened this issue Nov 14, 2019 · 11 comments
Assignees
Labels
bug Something isn't working in progress The issue has been assigned and is being actively pursued Requires Verification

Comments

@PropGit
Copy link

PropGit commented Nov 14, 2019

Yesterday, the Production and Solo sites were updated to v1.3.503 and v1.3.504, respectively.

Today, educators are having trouble in their classes. Some seems to be a caching problem (like many times in the past) but one instructor reports "all of my students are seeing the "Looking for BlocklyProp client" indefinitely, no matter whether or not the client is launched and connected, indefinitely. This persists across computers, robots, and after restarts."

I've seen this kind of connection issue in the past (as if the browser code had been changed somehow) but can't be sure. CTRL+SHIFT+Refresh solves it, but seemingly only if the user waits > 12 seconds on the editor page before refreshing. If they click refresh too early, or click multiple times fairly fast (<12s between), it continue to be "stuck" at "Looking for BlocklyProp client" message.

@PropGit PropGit added the bug Something isn't working label Nov 14, 2019
@PropGit
Copy link
Author

PropGit commented Nov 14, 2019

The 12 second thing doesn't appear to be consistent. Most of the time, I can't make it connect now.

@PropGit
Copy link
Author

PropGit commented Nov 14, 2019

IMPORTANT: Solo doesn't seem to be having the same problem. Solo is connecting for me without issue.

@zfi zfi self-assigned this Nov 14, 2019
@MatzElectronics
Copy link
Collaborator

MatzElectronics commented Nov 14, 2019 via email

@zfi
Copy link
Contributor

zfi commented Nov 14, 2019

The CDN code version that we are running on production is ... prod/14/file.... The browsers should automatically refresh the Javascript because the URI is different. The old one was ...prod/13...

All my tests are loading the correct CDN version.

@PropGit
Copy link
Author

PropGit commented Nov 14, 2019

Here's a video showing the experience on my side. I've CTRL+SHIFT+refreshed many times on Production (and Solo) before this, so I shouldn't have any cached content.

https://photos.app.goo.gl/6ntsjWdELubz1h1i9

@PropGit
Copy link
Author

PropGit commented Nov 14, 2019

I remembered what's causing this! We HAVE fixed this before, I'm sure of it; or this is once again a similar kind of problem with yet a different object reference. Here's the error in the console for that video pasted above:

image

@PropGit
Copy link
Author

PropGit commented Nov 14, 2019

Looks like it's a similar issue as a previous fix that was done before: Issue #1687

@PropGit
Copy link
Author

PropGit commented Nov 14, 2019

Actually, this is more direct. It was indeed fixed if I'm reading and remembering this right: Issue #140

@pjewald
Copy link
Contributor

pjewald commented Nov 14, 2019

Ok, that makes sense. Code from solo's copy of the CDN has made it's way back into this repo. Not good.

@PropGit Are you able to reproduce the above error consistently? I am going to patch the CDN and want to be able to validate the change.

@pjewald
Copy link
Contributor

pjewald commented Nov 14, 2019

I found that there are some artifacts from the Solo CDN code that made its way back into the production BlocklyProp CDN repo. Among those is the refactoring of the projectData global variable to a separate globals.js file. The editor.jsp is not including that new file, so the variable goes missing until it is explicitly assigned a value somewhere.

@pjewald pjewald added the in progress The issue has been assigned and is being actively pursued label Nov 15, 2019
@PropGit
Copy link
Author

PropGit commented Nov 17, 2019

Verified. It indeed works for me now. I apologize for missing this request for verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress The issue has been assigned and is being actively pursued Requires Verification
Projects
None yet
Development

No branches or pull requests

4 participants