question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Page reload loop with 12.0.0.alpha2

See original GitHub issue

After updating to 12.0.0.alpha2 (from 11) I’m experiencing page reload loops: the page keeps reloading indefinitely with this message in the console:

Response didn't contain a server id. Please verify that the server is up-to-date and that the response data has not been modified in transmission.

I’m using the Spring addon, so I tried to reproduce this in a simple app but it doesn’t happen, so it should be something related to something specific to the app where this happens.

Any idea of what may have changed in 12 causing this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
heruancommented, Oct 6, 2018

I’ve found the problem: enabling PWA in 12 will install a service worker which is requested by the browser in a special way, which is not intercepted by a Chrome plugin I’m using to add headers to the requests: the service worker request was then missing an header I use to select the current tenant and the session was invalidated, thus reloading the page (and creating the loop).

I spotted this downgrading to 11 and noticing the same loop, since once installed the service worker is still requested by the browser—no matter if the @PWA annotation was removed!

0reactions
heruancommented, Oct 4, 2018

Thank you @gilberto-torrezan but I cannot reproduce on a sample code, so it should be something specific to my main app. I manage to identify the last request before the page reloads:

POST /?v-r=uidl&v-uiId=0 HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Content-Length: 206
Pragma: no-cache
Cache-Control: no-cache
Origin: http://localhost:8080
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Content-type: application/json; charset=UTF-8
Accept: */*
Referer: http://localhost:8080/
Accept-Encoding: gzip, deflate, br
Accept-Language: en
Cookie: JSESSIONID=F969E478DA3C0EFE7076B832E398DFCB

{"csrfToken":"9e7b98cd-c329-4bea-bca1-f94453a71e88","rpc":[{"type":"publishedEventHandler","node":10,"templateEventMethodName":"updateSelectedTab","templateEventMethodArgs":[true]}],"syncId":0,"clientId":0}

HTTP/1.1 200
Set-Cookie: JSESSIONID=DCB5C7EE14CC729610C736C2AFC359AB; Path=/; HttpOnly
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
Content-Type: application/json;charset=UTF-8
Content-Length: 42
Date: Thu, 04 Oct 2018 10:31:51 GMT

In the response data tab, Chrome says: “Failed to load response data”, than Vaadin’s client reloads the page (and this cycle loops).

What I notice here is the JSESSIONID changing without reason, I’ll double check that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog of ngx-extended-pdf-viewer - PdfShowcase
Stop the PDF viewer from crashing if the page is left before the PDF is ... 12.0.0-alpha.2 #1197 Allow programmers to clear the...
Read more >
angular/router - UNPKG
* An Observable that contains a map of the query parameters available to all routes. 94, * The map supports retrieving single and...
Read more >
react-i18next | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Changelog — Python 3.11.1 documentation
gh-91719: Reload opcode when raising unknown opcode error in the interpreter main loop, for C compilers to generate dispatching code independently.
Read more >
30Days - CodeSandbox
In React, however we don't have to interact with the browser's event loop in raw ... page to reload (the default function when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found