marius-wieschollek / passwords-webextension

The official browser extension for the Passwords app for Nextcloud.
GNU General Public License v3.0
106 stars 33 forks source link

Extension - Error: Expected application/json, got text/html; charset=UTF-8 #242

Closed PhilSob92DD closed 1 year ago

PhilSob92DD commented 2 years ago

System Information

Server:

{ "version": { "server": "24.0.3.2", "app": "2022.6.20", "lsr": false, "php": "8.0.21", "cronPhp": "8.0.21" }, "environment": { "os": "Linux", "architecture": "x86_64", "bits": 64, "database": "mysql", "cron": "cron", "proxy": false, "sslProxy": false, "subdirectory": false }, "services": { "images": "imagick", "favicons": "bi", "previews": "pageres", "security": "hibp", "words": "leipzig", "previewApi": false, "faviconApi": false }, "status": { "autoBackupRestored": false }, "settings": { "channel": "stable", "nightlies": true, "handbook": false, "performance": 5 }, "encryption": { "sse": { "SSEv1r1": false, "SSEv1r2": true, "SSEv2r1": false, "none": false, "default": "SSEv1r2" }, "cse": { "CSEv1r1": false, "none": true, "default": "none" } } }


**Client:**

Browser and Version: Client OS and Version:



### Details
All extensions (Firefox, Chrome) and apps (official Android app) were connected to Nextcloud and the passwords were correctly synced, recognized and pasted with a click.

Apparently the server performed some updates and the database was temporarily unavailable.
Nextcloud itself runs smoothly. And I can also find and copy the passwords there directly in the plugin.

Since then all extensions and apss lost connection to Nextcloud. The following error message appears in the dropdown of the extension:
"
Connection with [Nextcloud-Name] failed
Error: Expected application/json, got text/html; charset=UTF-8
"

In addition, the extension cannot reconnect via the Nextcloud plugin via PassLink. No QR code is displayed and the link opens the Password page in Nextcloud in a new tab.

I have already tried to fix the extensions and have imported a password backup:
- occ passwords:backup:restore
- occ maintenance:repair
- occ db:add-missing-indices

I also tried a clean reinstallation, unfortunately that didn't work and I had to restore the database.

### Nextcloud log
Not currently displayed

### Browser log
<details>
<summary>Browser log</summary>
No OC found index.js:46:4
Proxying an event bus of version 2.1.1 with 1.3.0 index.es.js:2337:14
JQMIGRATE: Migrate is installed, version 3.4.0 jquery-migrate.min.js:2:698
Proxying an event bus of version 2.1.1 with 1.3.0 2 index.es.js:2337:14
jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. globals.js:62:15
$ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. globals.js:62:15
OCA.Comments.View initialized comments-app.js:32:8
$ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. globals.js:62:15
jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 2 globals.js:62:15
Proxying an event bus of version 2.1.1 with 1.3.0 index.es.js:2337:14
Loading theming data for notification bell styling App.vue:150
$ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. globals.js:62:15
Registering notifications container as a menu App.vue:160
$ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 2 globals.js:62:15
Notifications permissions granted App.vue:395
Polling interval updated to 30000 App.vue:355
Started background fetcher as session_keepalive is enabled App.vue:217
Proxying an event bus of version 2.1.1 with 1.3.0 index.es.js:2337:14
jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. globals.js:62:15
$ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. globals.js:62:15
session heartbeat polling started session-heartbeat.js:103:9
[DEBUG] unified-search: Unified Search initialized with the following providers 
Object { 0: {…}, 1: {…}, 2: {…}, 3: {…}, 4: {…}, 5: {…}, 6: {…}, 7: {…}, 8: {…}, 9: {…}, … }
ConsoleLogger.js:29:8
Got notification data App.vue:318
Polling interval updated to 30000 App.vue:355
$ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 7 globals.js:62:15
New notification, animating the bell icon App.vue:192
$ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 76 globals.js:62:15
Diese Seite verwendet die nicht standardisierte Eigenschaft "zoom". Stattdessen sollte calc() in den entsprechenden Eigenschaftswerten oder "transform" zusammen mit "transform-origin: 0 0" verwendet werden. app.js:2:1441990
Object { response: Response, error: Error }
app.js:2:1312190
Error: Content type mismatch: Expected application/json, got text/html; charset=UTF-8
    _sendRequest https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
app.js:2:1153329
Got notification data App.vue:318
Polling interval updated to 30000 App.vue:355
Got notification data App.vue:318
Polling interval updated to 30000 App.vue:355
Got notification data App.vue:318
Polling interval updated to 30000 App.vue:355
Got notification data App.vue:318
Polling interval updated to 30000 App.vue:355
Got notification data App.vue:318
Polling interval updated to 30000 App.vue:355
Got notification data App.vue:318
Polling interval updated to 30000 App.vue:355
Got notification data App.vue:318
Polling interval updated to 30000 App.vue:355
Got notification data App.vue:318
Polling interval updated to 30000 App.vue:355
jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 376 globals.js:62:15
Got notification data App.vue:318
Polling interval updated to 30000 App.vue:355
Object { response: Response, error: Error }
app.js:2:1312190
Error: Content type mismatch: Expected application/json, got text/html; charset=UTF-8
    _sendRequest https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    passLinkConnectRequest https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    requestConnection https://[NC-URL]/apps/passwords/js/Static/ConnectClient.2128340896ff63fa8953.js:1
    mounted https://[NC-URL]/apps/passwords/js/Static/ConnectClient.2128340896ff63fa8953.js:1
    Ke https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    on https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    insert https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    E https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    Kr https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    _update https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    a https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    get https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    yn https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    mount https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    $mount https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    $mount https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    initialize https://[NC-URL]/apps/passwords/js/Static/AppsSection.61fa0aa3c212ad439b14.js:2
    initPassLink https://[NC-URL]/apps/passwords/js/Static/AppsSection.61fa0aa3c212ad439b14.js:2
    click https://[NC-URL]/apps/passwords/js/Static/AppsSection.61fa0aa3c212ad439b14.js:2
    Ke https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    n https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    Ke https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    $emit https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    fireEvent https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    click https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    Ke https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    n https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    _wrapper https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
app.js:2:1153329
    Ze https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    We https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    Je https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    Ke https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    (Async: promise callback)
    Ke https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    on https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    insert https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    E https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    Kr https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    _update https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    a https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    get https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    yn https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    mount https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    $mount https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    $mount https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    initialize https://[NC-URL]/apps/passwords/js/Static/AppsSection.61fa0aa3c212ad439b14.js:2
    initPassLink https://[NC-URL]/apps/passwords/js/Static/AppsSection.61fa0aa3c212ad439b14.js:2
    click https://[NC-URL]/apps/passwords/js/Static/AppsSection.61fa0aa3c212ad439b14.js:2
    Ke https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    n https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    Ke https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    $emit https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    fireEvent https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    click https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    Ke https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    n https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
    _wrapper https://[NC-URL]/apps/passwords/js/Static/app.js?v=e8304769-30:2
jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 402 globals.js:62:15
jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 22 globals.js:62:15
Got notification data App.vue:318
Polling interval updated to 30000 App.vue:355
jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 16 globals.js:62:15
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 12 globals.js:62:15
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190
Object { response: Response, error: Error }
app.js:2:1312190

</details>
marius-wieschollek commented 2 years ago

Can you please check your server log (see: https://git.mdns.eu/nextcloud/passwords/-/wikis/Administrators/Guides/Maintenance/App-Debugging)

DrZoidberg09 commented 1 year ago

It is the same for me after switching to NC 25. Before it was completely fine.

Also acompanied by 503 errors for:

/index.php/apps/passwords/api/1.0/session/open /index.php/apps/passwords/api/1.0/folder/show

jcb-tn commented 1 year ago

Same here! THIS IS A HIGH CRITICAL ISSUE. I cannot login Nextclooud or other sites since i cannot connect to passwords app, after upgrading to NC 25.

Screenshot 2022-11-01 13-12-26

jcb-tn commented 1 year ago

sudo -u www-data php occ app:enable passwords App "Passwords" cannot be installed because it is not compatible with this version of the server. What to do in NC25?

marius-wieschollek commented 1 year ago

The passwords app is currently not available for Nextcloud 25 as a stable release. See https://github.com/marius-wieschollek/passwords/issues/534 . You can install the nightly version from the appstore page: https://apps.nextcloud.com/apps/passwords/releases?platform=25#25 .

jcb-tn commented 1 year ago

O.k., Thanks. Got it enabled.