qwik: [🐞]Uncaught (in promise) DOMException: The operation is insecure.

Which component is affected?

Qwik Runtime

Describe the bug

Static Qwik app, I use a function to perform some task in my MongoDB export const addCustomer = server$(async (data) => {... this when click in a Btn and everything works fine in development environment. <button onClick$={async () => {const resume = await addCustomer(customerRecord); ...}

So I pushed changes to production in Vercel host. Then when I send the information again, it Fails giving me this error in browser console. Uncaught (in promise) DOMException: The operation is insecure..

HELP!

Reproduction

I create a new Qwik app, with react and static adapters. Then I have in header a click link to visit Form route. Project Repository Vercel Deployment Vercel Project

Steps to reproduce

Get Code

git clone https://github.com/Maikpwwq/qwik-ssg-modular-forms.git
cd ./qwik-ssg-modular-forms
pnpm i
pnpm run start

Go to Form route through the Link, and tried to send Form.

System Info

...

Additional Information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 23 (7 by maintainers)

Most upvoted comments

I will investigate in this issue. hold on

— UPDATE —

You are doing SSG. Did you try SSR with Vercel adapter?

@gioboa This is a minimal reproduction, abstracted from my main project. I need to solve this issue then I can delete and restore my keys. How to use forms in Qwik? The documentation talks about @modular-forms/qwik I follow the configuration but it still fails. Really I have prove almost everything, serverless functions on Vercel, server$ functions on Qwik, now actions$ and I am a bit frustrated with this.

It works in development mode in production deploy continue failing.