Calin
June 3, 2025, 4:42pm
1
Question:
I created a small web module and when I run the code it says “Network error”
Product:
Wix Studio
What are you trying to achieve:
Run functions
What have you already tried:
import { Permissions, webMethod } from “wix-web-module”;
export const showDate = webMethod(
Permissions.Anyone,
async () => {
//const date = new Date().toISOString().substring(0, 10);
console.log(“Test”);
}
);
Hi, @Calin !!
Just to confirm—have you properly placed that JavaScript file in the backend? And have you tested calling it from the frontend on your live site?
Calin
June 3, 2025, 5:05pm
4
Hi! yes, it is in the backend.
No, I tested running the run small symbol, as I am used to do it in the Wix Editor.
Sorry for making you go through an unnecessary check.
1 Like
And, I tried the same thing in my own environment and got a Network Error as well. I’m not usually in the habit of checking things this way, so I wasn’t sure at first, but after actually importing it on the frontend, I confirmed that it works just fine. I believe it will likely work for you too.
Have you usually been able to run execution tests for backend modules this way? If so, that could be a problem.
1 Like
I can reproduce - just about to flag it with the team
1 Like
Calin
June 3, 2025, 5:23pm
8
Yes. I always do this in Wix Editor but it is first time I am working with Wix Studio.
Here is a print from Wix Editor, which is working just fine.
Your discovery might have just saved the wix world!
If it’s still happening for you, are you able to provide me details about the site?
Calin
June 3, 2025, 6:00pm
11
It’s still happening.
I just selected a template and now I am trying to create a custom booking site, but I cannot do it without debug, ofc.
I don’t know what else I can tell you, the backend is empty but with this small module where I included a very simple log expression to run it but the error persists.
This is the link → https://premiumpetshopro.wixstudio.com/my-site
Me again!
The team found the cause and just made a change. Might take a few mins to propagate to everyone. Should be working again soon.
Thanks for flagging it!
1 Like
Calin
June 3, 2025, 6:03pm
13
It is working now.
Thank you for your prompt response! Happy coding!
1 Like
Calin
June 22, 2025, 6:41am
14
I am experiencing again the same issue on Wix Studio.
1 Like
I do have the same issue on one of premium sites.
It does not matter which function I try to run, I only receive a red
Network Error
Another free-website works fine.
I also tried it with a simple function:
export function hello_world() {
console.log("hello_world");
}
I am pretty sure, that it is the same issue, as described above.
Also on the discord-channel, people complain about this issue.
1 Like
I am having the same error right now.
1 Like
I have the same issue as well with all my backend functions.
1 Like
Ditto.
Working from production site, but in the backend debug console it just errs instantly.
Hey!
I’ve just pinged the team about this - thanks for flagging it
If you’re still able to recreate, please share the request ID’s
Calin
June 23, 2025, 10:32am
20
Everything is working fine now on my side! Thank you!