Fatal Error on HTTP Request in Export (Works in Viewport)

DeborahSivolella
Thu, 12 Dec 2024 16:27:38 +0000
Blueprint

Hi everyone!
I’m experiencing an issue with my project in Unreal Engine 5.1, and I’m hoping someone here can help me figure it out.

Goal: I’m trying to send JSON data to a server using an HTTP POST request.
Works in Viewport: Everything works perfectly when running the project in the editor (Viewport).
Error in Export: When I export the project (in either Development or Shipping mode), the program crashes with a Fatal Error. The Fatal Error occurs only when I trigger the blueprint logic that calls the HTTP POST Request. In all other cases, the exported application runs without issues.

Blueprint Nodes Used:

I construct the JSON object using Set Field node.

I use the HTTP POST Request node to send the data.

I configure the headers with the Make Request Header node, setting Content-Type: application/json.

HTTP Plugin: The HTTP plugin is enabled and included in the packaging settings.

API Endpoint: The request is sent to a working HTTPS URL, which responds correctly when tested with a browser.

Test in Viewport: The URL and data work perfectly during Viewport tests, with no errors.

Error in Export: Fatal error! Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000020

What I’ve Tried So Far:

1. Verified that the HTTP plugin and necessary contents are included in the Packaging Settings.

2. Tested the API endpoint.

3. Added debug logs to ensure the JSON and headers are constructed correctly. Everything appears fine in Viewport.

Question:

What could cause a Fatal Error that occurs only in Export but not in Viewport?

What can I check or configure to ensure the HTTP Request works correctly in Export?

Thank you so much in advance to anyone who can help!
If additional details or full logs are needed, I’m happy to share them.

3 posts - 2 participants