API Schema Editor returns 404 due to trailing space

Wappler Version : 3.0.0
Operating System : mac 10.15.5

Expected behavior

The API schema Editor will properly fetch the api schema

Actual behavior

404 error

How to reproduce

The api action runs properly when normally executed…just fails when trying to Fetch Schema.

I couldn’t reapply reproduce this. My API endpoints return their response just fine.

404 is what the API endpoint returns in your case - so maybe there is something wrong with the request?

Maybe it is because the properties are set to use JSON Data so the request works fine in production, but in Define API Schema there are field inputs?

Yes in the define schema you have to supply a real json data to post so the request can be executed from within Wappler.

So you can’t use any server connect variables within as nothing gets evaluated.

I found it…copy/paste issue with a trailing space in URL. Sorry for the mis-fire.

Maybe you can trim URL values to save poor souls like me. :wink:

Wait…I’m not doing this…Wappler is!

Back to being a bug. The Url defaults to having a trailing space when the actual properties does not.

will add a trim of the url so this doesn’t happen any more

This is now fixed in Wappler 3.0.1

This topic was automatically closed after 24 hours. New replies are no longer allowed.