Rest API call self hosting error

I have a project that is communicating with an homemade Rest API remotely.

When I develop inside Weweb, all my calls to this API are working correctly, the IP address is also fixed like this: http://xx.67.xxx.xxx:8088/v1/codes/lexicontags/

Now, I want to host my site so I deployed my Weweb project, download the project files and start my own web site with the Weweb project inside.

Everything is working (visually) but all the calls to my API doesn’t work and not sure how but the URL I see trying to communicate is this (which I don’t know where it’s coming from):

http://localhost/ww/cms_data_sets/cff17b4c-9a97-446c-adcf-4a5bb79225d5/fetch?limit=NaN&offset=0

How come I’m loosing connection to my hardcoded IP Rest API if I want to host my Weweb project myself??

Simple question is:

Can you use the REST API plugin if you self host your project? It doesn’t seem to work. If yes, what am I doing wrong?

Thank you

Hi @i42tech,

Is the “proxy through server” option enabled in your plugin?

Yes it is. To make sure it was not my backend, I created a mock Rest API at mockapi.io and within Weweb, no issue, it’s loading the data inside a grid but as soon as I self host the project, the connection to this rest API doesn’t work anymore like if the Rest API plugin doesn’t work in a self-hosting scenario…which is crucial for me.

Can you please ensure this option is not enabled and try again? The REST API plugin requires communication with WeWeb microservices if the ‘‘proxy through server’’ option is enabled.

1 Like

Yes I can confirm that it’s working when the CORS proxy is off.

Note to Dev… those dependencies to some microservices should be documented if possible.

Thank you