Question:
I have implemented HTTP Functions successfully, and after a while they stopped working and I get an error that I cannot resolve, and need help with. Even after searching the forum.
The error I get when making a request is:
“Error loading web module backend/http-functions.js: Both resolutions failed at _load!\n\nOriginal resolver: Bindings not found\nYarnPNP: Bindings not found”
Nothing else shows in the logs.
Product:
Velo HTTP Functions
I basically have a
export function post_slackEvent(request), which gets called from slack.
This used to work fine, and I still get the call when performing the slack action.
What have you already tried:
I have reduced my entire backend code to the bare minimum. It now only has:
`
import { ok } from ‘wix-http-functions’;
export function post_slackEvent(request) {
try {
console.log(“post slackEvent”);
return ok();
} catch (error) {
console.error("post_slackEvent", error);
}
}
`
Note that I don’t even get these console logs to print any more, not even the console error.
The site monitor in developer tools shows that this method gets other errors
(no time-out or throttling issues)
I tried the in-editor debugging to run the method and that one works fine, and I can see the logs.
The code fails only in run time with a real request.
Publishing the site again doesn’t solve it.
Note that I did not make any code change that made it stop working.
I’m clueless…