VaRest Plugin: BindEvent onRequestFail never fire, how to check fail connection?

Hi all, I create some BP widgets using VaRest plugin. All are working, but I don’t know how to test if there are active connection or not, or server errors.
The BindEvent on RequestFail never fire, if I rename or delete my php page, or set a inexistent url, I don’t get any fail notification.
I tried with CallUrl, and in Callback I check if IsValid Json, so I could at least print a error message…

Here I tried ExecuteProcessRequest, in this case EventFail fired, but immediatly UE crashed.

Please can someone help me for check connection before load php page, or check if the response fail?
Thanks

2 Likes

news?

About VaRest - don’t use Call URL, it’s the wrong way of doing it (Not always! But mostly it’s a wrong node to use)

Whenever you get a response from the Server - you can pull it out and find “Get response content as String” to see the result - it will also show errors so you don’t need the “on failed” Event

You can get from the Response “get String Field” with name “error” - if string is empty = no error, if not empty - show the message (so use a branch here)

Also here’s a visible example of what I mean

I just saw this post is from 2 years ago, so I thought I will mention you so you will see my answer ;]