Shashank3736 / captcha-canvas

A captcha generator by using skia-canvas.
https://captcha-canvas.js.org
Apache License 2.0
61 stars 12 forks source link

Text not appearing in Captcha #54

Closed KuwuNekoshi closed 1 year ago

KuwuNekoshi commented 1 year ago

I'm having some issues making the text appear in the captcha, running it on my local machine works fine, but running it on our host(railway.app) it doesn't add the text to the image. We have tried a few different solutions from previous questions, but none of them seemed to solve our issues..

Local (works as expected) image

Host (Doesn't add text) image

We're running it in docker (on host only): image

And we have our dependencies in package: image

The code: image

Shashank3736 commented 1 year ago

Do you mind trying v2.3.1 because maybe the issue is with skia-canvas. skia-canvas has made some breaking changes recently which is affecting the package alot. I m planning to restart my work on v2.4.0 so i can provide the same level of customization using canvas module.

npm i captcha-canvas@2.3.1

Link to docs for v2: https://captcha-canvas.js.org/v2/index.html


As far as I remember your current configuration should work fine with the v2.3.1.

KuwuNekoshi commented 1 year ago

Changing to v2.3.1 and switching from alpine to bullseye worked out! Thank you very much 😄