I’m having trouble defining an API schema within Wappler API action settings.
The endpoint I’m working with (FoxyCart front-end API) requires all requests to be sent via HTTPS from a whitelisted IP address / Domain. My computer’s IP address and site domain are both whitelisted and the request works fine on my live site, but I’m getting an error when using the “Define API Schema” feature (within wither server action settings or API action component).
At this point, I’m assuming the requests sent by the Define API Schema/Fetch Schema button aren’t sent over https? Or I need to whitelist a different IP address?
I just need to be able to use the JSON data received in the API response dynamically.
Yes, sorry, I’m talking about the origin/requesting URL.
When I send an API request using define API schema, where is it sending the request from? My IP address or the server I’m connected to? The request is working just fine on my live site, but not within Wappler, so there must be a difference, right?
Update: To simplify things, I switched to using an API form component instead, which also works great on the live site, but I’m getting an error when I request from within Wappler using the Define API Shema tool. It’s clearly being blocked by the endpoint.
@George when an API request is sent using Define API Schema, where is the request sent from?
API requests sent from inside Server Action’s API action step are sent by the server where your application is hosted.
More specifically, where your server actions are hosted.
TIP: You can use services like Beeceptor to identify this. Call a server action API with Beeceptor as endpoint and see the request details there.
Thanks, @sid! Beeceptor is great. It doesn’t appear to show all the request info, though. I need to see the origin and whatnot. Maybe I’m missing something?
Despite my hours of scouring the forum and trying everything I can think of, I still can’t get these API requests to work in wappler. They work just fine on my live site, but NOT in when im trying to fetch the schema within wappler.