-
feliniefeliciAsked on May 31, 2021 at 5:18 PM
After filling the form it gets stuck with the "please wait" message when clicking on the send button. I tried with several devices and connections. I use the encryption with a personal public key, disabling the encryption the problem doesn't occur anymore. Can someone help me?
Page URL: https://form.jotform.com/211493975585369 -
Michal_S Jotform SupportReplied on May 31, 2021 at 7:59 PM
Hello!
Please check your console for errors when you try to submit it at let us know if you get any.
Please refer to the guide below if you need information on how to do that:
How to get a console report from most common browsers?
Awaiting your response,
Thank you!
-
feliniefeliciReplied on June 1, 2021 at 10:54 AM
Log with the error from Google Chrome console report:
prototype.forms.js:112 Uncaught TypeError: Cannot read property 'toString' of null
at Object.bigIntToMinTwosComplementsHex (encryptedForms.js?3.3.25674:1)
at KJUR.asn1.DERInteger.setByBigInteger (encryptedForms.js?3.3.25674:1)
at new KJUR.asn1.DERInteger (encryptedForms.js?3.3.25674:1)
at JSEncryptRSAKey.RSAKey.getPublicBaseKey (encryptedForms.js?3.3.25674:1)
at JSEncryptRSAKey.RSAKey.getPublicBaseKeyB64 (encryptedForms.js?3.3.25674:1)
at JSEncryptRSAKey.RSAKey.getPublicKey (encryptedForms.js?3.3.25674:1)
at JSEncrypt.getPublicKey (encryptedForms.js?3.3.25674:1)
at Object.encrypt (encryptedForms.js?3.3.25674:80)
at jotform.forms.js?3.3.25674:211
at prototype.forms.js:112
bigIntToMinTwosComplementsHex @ encryptedForms.js?3.3.25674:1
setByBigInteger @ encryptedForms.js?3.3.25674:1
KJUR.asn1.DERInteger @ encryptedForms.js?3.3.25674:1
RSAKey.getPublicBaseKey @ encryptedForms.js?3.3.25674:1
RSAKey.getPublicBaseKeyB64 @ encryptedForms.js?3.3.25674:1
RSAKey.getPublicKey @ encryptedForms.js?3.3.25674:1
JSEncrypt.getPublicKey @ encryptedForms.js?3.3.25674:1
encrypt @ encryptedForms.js?3.3.25674:80
(anonymous) @ jotform.forms.js?3.3.25674:211
(anonymous) @ prototype.forms.js:112
each @ prototype.forms.js:112
encryptAll @ jotform.forms.js?3.3.25674:202
(anonymous) @ jotform.forms.js?3.3.25674:1185
responder @ prototype.forms.js:573
encryptedForms.js?3.3.25674:1 Uncaught TypeError: Cannot read property 'toString' of null
at Object.bigIntToMinTwosComplementsHex (encryptedForms.js?3.3.25674:1)
at KJUR.asn1.DERInteger.setByBigInteger (encryptedForms.js?3.3.25674:1)
at new KJUR.asn1.DERInteger (encryptedForms.js?3.3.25674:1)
at JSEncryptRSAKey.RSAKey.getPublicBaseKey (encryptedForms.js?3.3.25674:1)
at JSEncryptRSAKey.RSAKey.getPublicBaseKeyB64 (encryptedForms.js?3.3.25674:1)
at JSEncryptRSAKey.RSAKey.getPublicKey (encryptedForms.js?3.3.25674:1)
at JSEncrypt.getPublicKey (encryptedForms.js?3.3.25674:1)
at Object.encrypt (encryptedForms.js?3.3.25674:80)
at WidgetsServer.js?v=1622558510256:1
at attached_callback (postMessage.js?3.3.25674:90)
bigIntToMinTwosComplementsHex @ encryptedForms.js?3.3.25674:1
setByBigInteger @ encryptedForms.js?3.3.25674:1
KJUR.asn1.DERInteger @ encryptedForms.js?3.3.25674:1
RSAKey.getPublicBaseKey @ encryptedForms.js?3.3.25674:1
RSAKey.getPublicBaseKeyB64 @ encryptedForms.js?3.3.25674:1
RSAKey.getPublicKey @ encryptedForms.js?3.3.25674:1
JSEncrypt.getPublicKey @ encryptedForms.js?3.3.25674:1
encrypt @ encryptedForms.js?3.3.25674:80
(anonymous) @ WidgetsServer.js?v=1622558510256:1
attached_callback @ postMessage.js?3.3.25674:90
-
Michal_S Jotform SupportReplied on June 1, 2021 at 12:30 PM
Hello!
It looks like the public key you've provided is in incorrect format, at least in relation to what JotForm uses for encryption.
If it is not too much of an inconvenience, please allow JotForm to generate the key for you.
To do that:
- Disable the encryption
- Reload the webpage
- Enable the encryption and use the JotForm generated key for the encryption by choosing Create encryption keys for me. This is actually quite convenient, as the generated keys get saved into your account. Remember to keep the downloaded key somewhere safe too, just in case. If you used JotForm's key generation before, you can also choose the I will use my existing keys option
This should fix your issue.
I apologize for the inconvenience.
- Disable the encryption