Skip to content

[Bug]: Using captcha receives Cannot read properties of null (reading 'ready') error on self-hosted #176

Open
@grrinch

Description

@grrinch

Bug Description

All my environmental variables for both captchas (Google ReCaptcha and Geetest) are set in docker-compose.yml, however, when selecting it as a feature for a form, the frontend doesn't get the captcha key and form cannot be submitted.

Steps to Reproduce

  1. Go to Form -> Settings -> Protection -> Bots prevention
  2. Set Bots prevention as Google reCaptcha or Geetest
  3. Visit the form
  4. Try to submit
  5. Gets error Cannot read properties of null (reading 'ready')

Expected Behavior

Should show or at least load Google reCaptcha or Geetest Captcha according to the setup of the form.

Screenshots

Here's my docker-compose.yml config:

Image

I checked and all env vars are available in the server container.

When visiting the form, I noticed that the captcha key is not being passed:

Image

HeyForm Installation

self hosted

Version

v0.0.16 (heyform/community-edition:latest)

Desktop OS

Windows

Desktop Browser

None

Desktop Browser Version

Tested on many browsers: Chrome 132.0.6834.160, Arc 132.0.6834.160, Zen 1.7.5b (Firefox 135.0) (64-bit)

Mobile Device

None

Mobile OS

None

Mobile Browser

None

Mobile Browser Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions