ConvertX icon indicating copy to clipboard operation
ConvertX copied to clipboard

Unable to click convert, cursor becomes "NO" icon

Open patach opened this issue 8 months ago • 14 comments

Unable to click convert on any of my files regardless of what I drag or try to convert. Is there something I am doing wrong here?

https://github.com/user-attachments/assets/c5e10c5b-49ff-4d46-90f7-a16b33730ef5

Log:

ConvertX v0.12.1

🦊 Elysia is running at http://localhost:3000

Alpine Linux v3.20

ebook-convert (calibre) is not installed

GraphicsMagick 1.3.43 2024-03-23 Q16 http://www.GraphicsMagick.org/

resvg v0.45.1

pandoc 3.1.13

XeTeX 3.141592653-2.6-0.999996 (TeX Live 2024/Alpine Linux)

assimp Version 5.4 -shared -st (GIT commit 0)

libheif v1.19.7

djxl v0.10.2 [AVX2,SSE4,SSE2]

Bun v1.2.11

vips-8.15.2

ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers

Inkscape 1.3.2 (091e20ef0f, 2023-11-25)

jobId set to: 11

jobId set to: 12

My compose.yml:

docker-compose.yml

services: convertx: image: c4illin/convertx:main container_name: convertx restart: unless-stopped ports: - "4545:3000" environment: - ALLOW_UNAUTHENTICATED=true - AUTO_DELETE_EVERY_N_HOURS=48 - JWT_SECRET=XXXXX # will use randomUUID() if unset volumes: - ./data:/app/data

Docker compose properly created the /data folder with the database files within as well.

patach avatar Apr 30 '25 07:04 patach

What does the browser console say?

C4illin avatar Apr 30 '25 07:04 C4illin

There seems to be an error here:

upload progress (image.png): 100
VM36:1 Uncaught SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
    at JSON.parse (<anonymous>)
    at xhr.onload (script.js:218:21)
xhr.onload @ script.js:218
XMLHttpRequest.send
uploadFile @ script.js:247
(anonymous) @ script.js:164

patach avatar Apr 30 '25 17:04 patach

Same exact error as well, also on 0.12.1

kerta1n avatar May 01 '25 22:05 kerta1n

I've come across a similar issue, though without an error in the log when uploading larger files (about 150 MB .mp3 in my case). I can't click on Convert, but if I upload a smaller file and the larger after it, I can click Convert and both jobs finish without problems.

I tried converting an .mp3 to .wav with ffmpeg for testing. I tried both latest release and latest commit version of docker image.

cobble2gether avatar May 07 '25 07:05 cobble2gether

this does still seem to be an issue for 0.13

patach avatar May 15 '25 21:05 patach

Same on 0.13 Uploaded a .png

Uncaught SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON at JSON.parse () at xhr.onload (script.js:215:21)

sem1845 avatar May 19 '25 13:05 sem1845

The same error for version 0.13

alive-corpse avatar May 21 '25 10:05 alive-corpse

I've just found the solution in other issue conversation. You need to add HTTP_ALLOWED=true to environment variables and it will work like a charm for http connections. Whish good day to everyone!

alive-corpse avatar May 21 '25 11:05 alive-corpse

I've just found the solution in other issue conversation. You need to add HTTP_ALLOWED=true to environment variables and it will work like a charm for http connections. Whish good day to everyone!

This is working for me now. Thanks @alive-corpse

sem1845 avatar May 21 '25 14:05 sem1845

Thank you @alive-corpse

varadins avatar May 25 '25 16:05 varadins