Hi there,
I just installed saltcorn and so far everything works good.
I did an ubuntu install: https://wiki.saltcorn.com/view/ShowPage/install-on-ubuntu
Got custom SSL running.
Although if i want to connect to the store i get an invalid JSON error.
The JSON is OK - but it seems not to reach the system.
Is there some paket missing I am not aware of?
Is this a known issue or did I something wrong?
Bevore I build everything again to double check I wanted to ask here first.
Saltcorn Version | 0.8.7-beta.0 |
---|
Node.js Version | v14.21.3 |
---|---|
Datenbanktyp | PostgreSQL 14.8 |
Jun 12 13:33:31 apps saltcorn[21222]: FetchError: invalid json response body at https://store.saltcorn.com/api/extensions reason: Unexpected token < in JSON at position 0
Jun 12 13:33:31 apps saltcorn[21222]: at /home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/node-fetch/lib/index.js:273:32
Jun 12 13:33:31 apps saltcorn[21222]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 12 13:33:31 apps saltcorn[21222]: at Function.store_plugins_available_from_store (/home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/data/models/plugin.ts:198:18)
Jun 12 13:33:31 apps saltcorn[21222]: at Function.store_plugins_available (/home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/data/models/plugin.ts:166:26)
Jun 12 13:33:31 apps saltcorn[21222]: at get_store_items (/home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/server/routes/plugins.js:164:19)
Jun 12 13:33:31 apps saltcorn[21222]: at /home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/server/routes/plugins.js:551:19 {
Jun 12 13:33:31 apps saltcorn[21222]: type: 'invalid-json'
Jun 12 13:33:31 apps saltcorn[21222]: }
Jun 12 13:33:31 apps saltcorn[21222]: fetch store error FetchError: invalid json response body at https://store.saltcorn.com/api/packs?fields=name,description reason: Unexpected token < in JSON at position 0
Jun 12 13:33:31 apps saltcorn[21222]: at /home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/node-fetch/lib/index.js:273:32
Jun 12 13:33:31 apps saltcorn[21222]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 12 13:33:31 apps saltcorn[21222]: at fetch_available_packs_from_store (/home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/admin-models/models/pack.ts:499:16)
Jun 12 13:33:31 apps saltcorn[21222]: at fetch_available_packs (/home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/admin-models/models/pack.ts:458:24)
Jun 12 13:33:31 apps saltcorn[21222]: at get_store_items (/home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/server/routes/plugins.js:165:27)
Jun 12 13:33:31 apps saltcorn[21222]: at /home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/server/routes/plugins.js:551:19 {
Jun 12 13:33:31 apps saltcorn[21222]: type: 'invalid-json'
Jun 12 13:33:31 apps saltcorn[21222]: }
Does anyone how to fix this?
If this is not enough info please tell what you want me to post.
Thank you!