Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: nullpostData is not defined #133

Open
leiloovexiu opened this issue May 26, 2022 · 0 comments
Open

Uncaught ReferenceError: nullpostData is not defined #133

leiloovexiu opened this issue May 26, 2022 · 0 comments

Comments

@leiloovexiu
Copy link

Failed to execute 'send' on 'XMLHttpRequest': The provided ArrayBufferView value must not be shared.

I hack-fixed it by changing Engine/Platforms/HTML5/Source/Runtime/HTML5/HTML5JS/Private/HTML5JavaScriptFx.js:

  // HACK: Fixes POST requests when threads are enabled.
  // ORIGINAL: xhr.UE_fetch.postData = Module.HEAP8.subarray(payload, payload + payloadsize);
  var postData = new Uint8Array(payloadsize);
  for (var i = 0; i < payloadsize; ++i) {
    postData[i] = Module.HEAPU8[payload+i];
  }
  xhr.UE_fetch.postData = postData;

After I use it, a new error appears
“Uncaught ReferenceError: nullpostData is not defined”

I can't find a solution, can someone help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant