Query runs in Wappler but not in browser

Hello,
I use WAMP 3.3.7 + PHP 8.2.

I can access the DB and all tables through Wappler, but when I open the API in the browser, the error below appears:

Help-me, please!

Hello @myllermeireles

Where you succesfully run your query is under a Direct Database Method and that will only work in Wappler Editor
image

However, for testing in browser you need to configure it under Globals -> Database Connections
image

So the issue must be on some bad configuration there.
Server Address should not start with http:// or https:// so check that first...

Remember that depends on what target you are:

1 Like

Now I see it clearly:
I believe this is the issue
image

Server address should be mydomain.com and not http://mydomain.com or https://mydomain.com

1 Like

Hello @franse

I checked the item you suggested (Data Base Connection) and managed to solve the problem.

Thank you very much!!! :fist_right: :fist_left:

2 Likes