Overview: makeDOTcom grab cms data from wix and a http request send update date to the wix cms back
I’m having trouble with
the http request from makeDOTcom dont gets acces to my js file in the backend of wix. I also tryed to do a simple ping request to one js file and i always gets the same error.
Working in
Wix Editor, Dev Mode, CMS
Site link
www.schindlerei-fitness.at
you can register as user and find in usermenu “workoutBuilder”. User can fill out the formular - send data to cms - webhook grabs the data - send to chatgpt - http request should send data back to cms and update cms user row.
What I’m trying to do
I try to import the data from external service to wix CMS
What I’ve tried so far
I createt backend files:
- http-functions (folder)
*updateWorkout.js
code "updateWorkout.js
// backend/http-functions.js
import wixData from 'wix-data';
import { ok, badRequest, serverError } from 'wix-http-functions';
/**
* POST /_functions/updateWorkout (live)
* POST /_functions-dev/updateWorkout (Editor-Preview)
*/
export async function post_updateWorkout(request) {
// Body einlesen
let body;
try {
body = await request.body.json();
} catch {
return badRequest({
body: { success: false, error: "Body ist kein gültiges JSON" }
});
}
const { itemId, updates } = body || {};
if (!itemId || typeof updates !== "object") {
return badRequest({
body: { success: false, error: "itemId und updates sind Pflichtfelder" }
});
}
// Update durchführen
try {
const updatedItem = await wixData.update("workoutdaten", {
_id: itemId,
...updates
});
return ok({
body: { success: true, item: updatedItem }
});
} catch (err) {
return serverError({
body: { success: false, error: err.message }
});
}
}
- http-functions.js (empty)
I did a test and tryed to open the updateWorkout.js file with that URL:
Wix LOG File:
Error loading function from web module backend/http-functions.js: function ‘use_updateWorkout’ not found
{
"insertId": "..........654wmF60K2wctw9GGYsaua",
"timestamp": "2025-07-15T16:50:07.764Z",
"labels": {
"siteUrl": "https://schindlerei-fitness.at/",
"revision": "561",
"namespace": "Velo",
"tenantId": "cc5bb357-0399-4396-aedb-cdac82c12c11",
"viewMode": "Site"
},
"operation": {
"id": "1752598207.44428828695173771884",
"producer": "backend"
},
"jsonPayload": {
"message": "Error loading function from web module backend/http-functions.js: function '**use_**updateWorkout' not found"
},
"severity": "ERROR",
"receiveTimestamp": "2025-07-15T16:50:07.939Z",
"id": "ee9695b8-e2df-426d-932c-441ba0980075"
}
Extra context
It dosent matter what file i try to reach in my backend. wix always try to open _use(filename).
please can someone help me out and sorry for my bad english.
thanks for your help. I would also pay you for your time and service.
Best regards Berni