• Resolved Megunticook

    (@megunticook)


    I’m trying to export my custom files to my CDN and the upload keeps getting stuck after uploading a portion of the files, saying “request failed.” It keeps retrying but always fails.

    I’ve isolated the problem to one of the plugin .js files (if I remove “{plugins_dir}/*.js” from the list of “custom files” then the problem disappears.

    Is there some way to identify the file that it’s getting stuck on? Is there a log somewhere?

    Why is this happening and what can I do to prevent it or at least work around it?

    Thanks.

    • This topic was modified 5 years, 3 months ago by Megunticook.
Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @megunticook

    I am sorry about the issue you are having and I am happy to assist you with this.
    We cannot be completely sure why the issue is occurring. Now, since you’ve isolated the issue, you might want to try and add the plugins one by one to custom files: E.G.
    {plugins_dir}/some-plugin1/*.js
    {plugins_dir}/some-plugin2/*.js
    {plugins_dir}/some-plugin3/*.js
    etc.
    This way you can specify which plugin JS file is causing.
    I hope this helps and please let us know the result.

    Thread Starter Megunticook

    (@megunticook)

    Thanks for the reply. Interestingly, I tried adding each plug in directory one by one to the “Rejected Files” list and couldn’t get rid of the “request failed” error.

    Then I removed the {plugins_dir}/*.js line from the “Custom File List” and tried adding plugin directories one by one. Turns out it the culprit was the woocommerce directory.

    So…how can I fix this? Is there a particular file W3TC is balking at? Or is something else preventing the upload?

    Thanks.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @megunticook

    I am glad to know that you’ve managed to find the source of the issue.
    Have you tried to upload those files manually via AWS CP?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @megunticook

    Can you also share a screenshot? it should say which file it’s trying to upload.
    Thank you!

    Thread Starter Megunticook

    (@megunticook)

    Thanks, here’s a screenshot. Where does it indicate the file it’s trying to upload?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @megunticook
    Thank you for the screenshot.
    Can you please check your error log.
    If the error.log is not showing anything there is a possibility that the upload timed-out and it takes too much time for your host to upload file and timeout is set to lower value to process responses on his host.
    So, in this case, you should increase it.

    I am getting the same error and my hunch is that a change in the last update is causing it.

    My upload is stopping at wp-content/plugins/woocommerce/assets/js/round.min.js, which is at around 20% of the custom files CDN upload to AWS/S3.

    I just updated and encountered the error, so I have not investigated further.

    I rolled back WordPress, Woocommerce and W3TC. No error.

    Not sure which is causing the issue, but it’s not AWS.

    Why was this marked as resolved?

    • This reply was modified 5 years, 3 months ago by jpb10.
    Thread Starter Megunticook

    (@megunticook)

    Since my last post I updated W3TC to 0.11.0. I tried uploading my custom files again and it failed again, although apparently at a different file (wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/utils/get-query.js).

    Where is the W3TC error log located?

    This thread is not resolved, BTW.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @megunticook

    Can you please rollback the woo commerce and see if the issue persists?

    Thread Starter Megunticook

    (@megunticook)

    OK, will do and report back.

    Can you tell me where to find the W3TC error log?

    Thanks.

    jpb10, if you’re still on this thread, sounds like you determined it was either a WP, WC, or W3TC update that caused this issue. Can you re-apply each of those updates, one at a time, to isolate which one is the culprit here?

    I will look into it.

    Maybe enable WP debug (wp-config.php) or check the PHP log. (I have no idea…)

    Which CDN mode are you using?

    Thread Starter Megunticook

    (@megunticook)

    “CDN Type” in General Settings>CDN is set to “Amazon CloudFront Over S3”

    Nothing in my PHP log that I can see.

    I’m going to need to duplicate the CDN setup on my development site before I can do WP debug.

    I updated WordPress (5.3.2) and CDN uploads worked.

    Then I updated Woocommerce (3.8.1) and uploads started failing.

    Finally I updated W3TC (0.12.0) and the issue persists.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘“request failed” on custom files export to CDN’ is closed to new replies.