I'm trying to interface with Wikipedia through the Wix Fetch API. The code is executed in the backend. The response returns undefined, even though the console has all the data ready. Does anyone have an idea why this is?
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
You have to return something from the function. Try adding the return key to the fetch method:
... return fetch(url, { method: "GET" }) ...
Thank you so much😂 - sometimes it's the simple things XD