TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

Next error occurred - SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

Open Nachtlichtermeer opened this issue 2 years ago • 5 comments

Steps to reproduce

  1. Upgrade to commit 7937b4462ee3d83d8a0ac35b91d2e658fe1feebe or newer
  2. Login
  3. Wait some seconds

Expected behaviour

folders and passwords should shown

Actual behaviour

window with "Next error occurred SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data" opens

Server configuration

Operating system: Ubuntu 20.04

Web server: Apache 2

Database: MySQL

PHP version: 7.4

Teampass version: 3.0.0.18 since 7937b4462ee3d83d8a0ac35b91d2e658fe1feebe; 83294ac828520256e93f7f23e50c684e657af048 tested too

Teampass configuration file:

Updated from an older Teampass or fresh install: Updated from e0ed8ef4e44144930d4d431b705916caa460e3a0 but tested steps between

Client configuration

Browser: 103.0 (64-Bit)

Operating system: Ubuntu 20.04

Logs

Web server error log

nothing

Log from the web-browser developer console (CTRL + SHIFT + i)

Uncaught TypeError: data.html_json is undefined
    refreshVisibleFolders https://passwort-dev.foo.de/index.php?page=items:8203
    jQuery 7
    refreshVisibleFolders https://passwort-dev.foo.de/index.php?page=items:8182
    <anonymous> https://passwort-dev.foo.de/index.php?page=items:5431
    jQuery 8
    countdown https://passwort-dev.foo.de/includes/js/functions.js:67
    jQuery 9
    countdown https://passwort-dev.foo.de/includes/js/functions.js:64
    <anonymous> https://passwort-dev.foo.de/index.php?page=items:3668

Nachtlichtermeer avatar Aug 10 '22 06:08 Nachtlichtermeer

Same problem

ErikasRaginis avatar Aug 10 '22 20:08 ErikasRaginis

same problemm

ronesansholding avatar Aug 11 '22 14:08 ronesansholding

same problem on clean install

damian19820 avatar Aug 12 '22 05:08 damian19820

I also have the same issue on a clean installation.

bananatree23 avatar Aug 12 '22 09:08 bananatree23

Is there any update on this issue?

brad-dart avatar Aug 24 '22 04:08 brad-dart

It doesn't look like this issue has been noticed yet. We need an update please.

ErikasRaginis avatar Aug 31 '22 17:08 ErikasRaginis

@nilsteampassnet Same issue here at latest commit. Console log: This page is in Almost Standards Mode. Page layout may be impacted. For Standards Mode use “”. index.php Uncaught TypeError: data.html_json is undefined refreshVisibleFolders https://teampass.net/index.php?page=items:6241 jQuery 7 refreshVisibleFolders https://teampass.net/index.php?page=items:6219 https://teampass.net/index.php?page=items:3469 jQuery 8 countdown https://teampass.net/includes/js/functions.js:76 jQuery 9 countdown https://teampass.net/includes/js/functions.js:73 https://teampass.net/index.php?page=items:1737 index.php:6241:25 refreshVisibleFolders https://teampass.net/index.php?page=items:6241 jQuery 7 refreshVisibleFolders https://teampass.net/index.php?page=items:6219 https://teampass.net/index.php?page=items:3469 jQuery 8 countdown https://teampass.net/includes/js/functions.js:76 jQuery 9 countdown https://teampass.net/includes/js/functions.js:73 https://teampass.net/index.php?page=items:1737

image

fermosan avatar Sep 11 '22 11:09 fermosan

You confirm that you run the upgrade process after using latest commit? Please also perform a CTRL+F5 after upgrading.

nilsteampassnet avatar Sep 11 '22 12:09 nilsteampassnet

You confirm that you run the upgrade process after using latest commit? Please also perform a CTRL+F5 after upgrading.

@nilsteampassnet When you say run the upgrade process after using the latest commit you mean all over again the upgrade from teampass version 2 or rerun update script in the already teampass 3 instance ?

fermosan avatar Sep 11 '22 18:09 fermosan

Updating to latest commit fixed the issue for me. I checked out the new commit, restored files in the install directory (that i had deleted before) and ran install/upgrade.php. Then logged into my account and the directory tree loaded as it was supposed to.

ErikasRaginis avatar Sep 12 '22 14:09 ErikasRaginis

Well, this doesn't work for me. Any ideas how to further debug it ?

fermosan avatar Sep 12 '22 20:09 fermosan

The latest commit does not work for me either. This issue occurs when upgrading from prior versions and for fresh installs. The only additional config that has been performed is ldap auth. The tree loading fails after adding a single entry.

brad-dart avatar Sep 13 '22 00:09 brad-dart

I have ldap auth as well. Maybe the problem is related to auth type. @nilsteampassnet any ideas? can you reproduce with ldap auth ?

fermosan avatar Sep 13 '22 07:09 fermosan

Downgrading to 3.0.0.17 and restoring database all folders are visible. Trying to upgrade to 3.0.0.18 and the problem re-appears. Exporting to CSV in order to import to again to clean instance but the export is stuck to Starting... Any ideas?

fermosan avatar Sep 13 '22 14:09 fermosan

Has anyone been able to find a work around for this issue? Cheers

brad-dart avatar Oct 06 '22 00:10 brad-dart

Has anyone been able to find a work around for this issue? Cheers

Upgrading to the newest version has fixed this issue for me.

bananatree23 avatar Oct 10 '22 07:10 bananatree23

Has anyone been able to find a work around for this issue? Cheers

Upgrading to the newest version has fixed this issue for me.

Thanks for the update. Can I ask if you use ldap for auth?

brad-dart avatar Oct 10 '22 23:10 brad-dart

Has anyone been able to find a work around for this issue? Cheers

Upgrading to the newest version has fixed this issue for me.

Thanks for the update. Can I ask if you use ldap for auth?

Nice, i'll try...

yes, we use LDAP

Nachtlichtermeer avatar Oct 11 '22 06:10 Nachtlichtermeer

Tested succesfully with latest commit a798c9dc9184b5b14184c93c898d727b6418f1e1

Nachtlichtermeer avatar Oct 11 '22 06:10 Nachtlichtermeer