lcs icon indicating copy to clipboard operation
lcs copied to clipboard

Add version 0.19 API compatible login

Open citking opened this issue 2 years ago • 2 comments

LCS returns:

FetchError: invalid json response body at https://daring.lemmy.fan/api/v3/user/login reason: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

at /app/node_modules/node-fetch/lib/index.js:273:32

at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

type: 'invalid-json'

on Lemmy 0.19.

Any chance the login logic can be updated to use the new Lemmy login API?

citking avatar Dec 01 '23 16:12 citking

I'm also getting this error on Lemmy 0.19.1

Checking programming.dev for posts of TopAll
FetchError: invalid json response body at https://programming.dev/api/v3/post/list?type_=All&sort=TopAll&limit=100 reason: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at /app/node_modules/node-fetch/lib/index.js:273:32
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: 'invalid-json'
}

SirMaple avatar Dec 27 '23 17:12 SirMaple

I have created a pull req for this.

I know there is already a separate branch. But I've ran this through and it's working fine on version .19

https://github.com/Fmstrat/lcs/pull/10

codypace68 avatar Dec 30 '23 22:12 codypace68

Complete in latest version.

Fmstrat avatar Dec 24 '24 19:12 Fmstrat