marius-wieschollek/passwords-webextension

Blocking issue after new installation - Expected application/json, got text/html

Closed this issue · 2 comments

Hi,

I have this extension working fine on other computers.
I tried to install this extension on a new Windows 11 installation, and I can't make it works.

System Information

  • Extension Version: 2.5.0
  • App Version: 2023.12.31
  • Browser and Version: Firefox 120.0.1 (64 bits)
  • Client OS and Version: Windows 11 23H2

Steps to reproduce

  1. Install windows 11 latest build and install latest available updates
  2. Install Firefox latest version
  3. Install the extension from Firefox extension store.
  4. Configure your client
  5. Try to browse passwords

Expected result

Browsing passwords from the extension app.

Actual result

image

Browser log

Browser log
Expected application/json, got text/html; charset=iso-8859-1 ResponseContentTypeError: Expected application/json, got text/html; charset=iso-8859-1
    r moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
    getClass moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
    getClass moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
    send moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
 
Object { details: {…}, error: {…} }
 r@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:597027
getClass@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:556166
getClass@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:615710
send@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:570924
background.js:2:740830
Extension initialized background.js:2:877882
Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist.
    _sendMessage moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
 
Object { details: {…}, error: {…} }
 _sendMessage@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:798297
background.js:2:740830
Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist.
    _sendMessage moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
 
Object { details: {…}, error: {…} }
 _sendMessage@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:798297
background.js:2:740830
Expected application/json, got text/html; charset=iso-8859-1 ResponseContentTypeError: Expected application/json, got text/html; charset=iso-8859-1
    r moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
    getClass moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
    getClass moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
    send moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
 
Object { details: {…}, error: {…} }
 r@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:597027
getClass@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:556166
getClass@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:615710
send@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:570924
background.js:2:740830
Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist.
    _sendMessage moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
 
Object { details: {…}, error: {…} }
 _sendMessage@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:798297
background.js:2:740830
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
    _sendMessage moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
background.js:2:798297
Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist.
    _sendMessage moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
 
Object { details: {…}, error: {…} }
 _sendMessage@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:798297
background.js:2:740830
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
    _sendMessage moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
background.js:2:798297
Expected application/json, got text/html; charset=iso-8859-1 ResponseContentTypeError: Expected application/json, got text/html; charset=iso-8859-1
    r moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
    getClass moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
    getClass moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
    send moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2
 
Object { details: {…}, error: {…} }
 r@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:597027
getClass@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:556166
getClass@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:615710
send@moz-extension://705cdaae-b706-46df-805a-6e5bde730860/js/background.js:2:570924
background.js:2:740830

Can you check which error messages appear in the Nextcloud log related to this

Warning passwords Login attempt with invalid authorization header for invalid user id 2023-12-15T08:58:17+00:00
...

It would be great to have reliable logs within the extension... :-)