Problem Http Request
I want to do a Http Request, and I'm using a blueprint function library, but when I have the response, UE4 crash. Could you tell why?
My code is:
Reason is this:
You create empty response pointer which is null and make a call of it, so engine stops when it checks its validity (IsValid())
This is not how you should use HTTP API, it's asynchronous as you not sure when you get reponce.... if you even get one. You need to bind to event to request and you get delegate for it from OnProcessRequestComplete() function, here you got example from engine code (this code is to test this API):
Hmmm i think by returning this delegate in the end of blueprint node you should able to bind it in blueprints
answered Jul 05 '16 at 02:41 PM
I don't know what I need to add to my new code because I don't know how to get MessageBody in a node, I'm using delegates but it's difficult to understand it and the code which you can find below has errors and I don't know why.
Could you tell me how would be the code?
answered Jul 06 '16 at 12:07 PM
Could you tell me the lines that I have to add to obtain my parameter Messagebody? I think that I have to bind and then I have to call the parameter, but I don't know how to do it.
answered Jul 07 '16 at 09:00 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here