Closed Tomasu closed 6 years ago
I'm having the same issue as of today (after updating my Chromebook). After reboot, can no longer login with Passman extension. Error is: "Invalid response from server: [0] TypeError: Failed to fetch"
Still works fine from my Windows 7 machine.
Tried removing and re-adding account, then tried uninstalling/re-installing the extension, to no avail.
OS: Chrome OS Version 68.0.3437.0 (Official Build) dev (64-bit) Passman v: 2.1.4 Ext v: 2.1.1 NC v: 13.0.0
I am also getting this problem on one of my machines. Weird. Re-installed the extension and tried to log in and I'm getting Invalid response from server: [0] TypeError: Failed to fetch
I am using Chromium Version 70.0.3502.0 on Arch Linux on two machines. One it works, the other I get this error.
Ext Version: 2.1.1 NextCloud Version: 13.0.5 - 13.0.5.2 Passman Version (on server): 2.1.4
Looking into it a bit further, I am getting this error in chromium's console:
GET https://mydomain.com/index.php/apps/passman/api/v2/vaults net::ERR_TOO_MANY_REDIRECTS
api.js:223
However, going to https://mydomain.com/index.php/apps/passman/api/v2/vaults
directly, I get a 200 response and valid JSON.#
$ curl 'https://mydomain.com/index.php/apps/passman/api/v2/vaults' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'Upgrade-Insecure-Requests: 1' -H 'DNT: 1' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3502.0 Safari/537.36' -H 'Sec-Metadata: cause="forced", destination="document", target="top-level", site="same-origin"' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-GB,en;q=0.9,en-US;q=0.8' -H 'Cookie: oc_sessionPassphrase=******; __Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; ***=***' --compressed 2> /dev/null | jq
[
{
"vault_id": 2,
"guid": "********************",
"name": "Work Vault",
"created": ***,
"public_sharing_key": "-----BEGIN PUBLIC KEY-----\r\n*******\r\n",
"last_access": ***,
"challenge_password": "******",
"delete_request_pending": false
},
{
"vault_id": 3,
"guid": "*******",
"name": "Home Vault",
"created": ***,
"public_sharing_key": "-----BEGIN PUBLIC KEY-----\r\n******\r\n-----END PUBLIC KEY-----\r\n",
"last_access": ***,
"challenge_password": "******",
"delete_request_pending": false
}
]
Seeing the same exact type error message: Invalid response from server: [0] TypeError: Failed to fetch
I also see a bunch of 302 redirects fill in the web server log when an account is attempted to be added to the Passman extension. This would correlate with the error @Jab2870 got from his chromium console.
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:52 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1487 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:52 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:53 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:54 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:54 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:54 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:54 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:54 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:54 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
****.****.com:443 ***.***.***.*** - johndoe [02/Aug/2018:10:23:54 -0400] "GET /index.php/apps/passman/api/v2/vaults HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36"
Passman Extension Version: 2.1.1 Passman Server Version: 2.1.4 Nextcloud Version: 13.0.1
Browser log
``` Insert your browser log here, this could for example include: Not sure how to get the chrome network log, but the apache access log shows a bunch of 302 responses on hitting the passman refresh button. eg: [24/May/2018:10:32:40 -0600] "GET /index.php/apps/passman/api/v2/vaults/[snip] HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3432.3 Safari/537.36" ```