Static WordPress Community

Failure to Deplot on Netlify: 400 error

Got everything setup and working 4 days ago and had successful deploys.
Took out the links because of new user limit
site url = https://chundusu.design
local = http://localhost:4867

Logs:
2021-04-17 12:33:56 2021-04-17 12:33:56
PHP VERSION 7.4.14
OS VERSION Linux a41fb4beaa9a 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64
WP VERSION 5.7.1
WP URL local
WP SITEURL local
WP HOME local
WP ADDRESS local
PLUGIN VERSION 6.6.21
VIA WP-CLI?
STATIC EXPORT URL site url
PERMALINK STRUCTURE /%postname%
SERVER SOFTWARE nginx/1.18.0
2021-04-17 12:33:56 Active plugins:
2021-04-17 12:33:56 autoptimize/autoptimize.php
2021-04-17 12:33:56 imagify/imagify.php
2021-04-17 12:33:56 static-html-output-plugin/static-html-output-plugin.php
2021-04-17 12:33:56 wordpress-seo/wp-seo.php
2021-04-17 12:33:56 Plugin options:
2021-04-17 12:33:56 additionalUrls: /wp-content/uploads/2021/04/
2021-04-17 12:33:56 baseUrl: site url
2021-04-17 12:33:56 baseUrl-bitbucket:
2021-04-17 12:33:57 baseUrl-bunnycdn:
2021-04-17 12:33:57 baseUrl-github:
2021-04-17 12:33:57 baseUrl-gitlab:
2021-04-17 12:33:57 baseUrl-netlify: site url
2021-04-17 12:33:57 baseUrl-s3:
2021-04-17 12:33:57 baseUrl-zip: site url
2021-04-17 12:33:57 baseUrl-zip: site url
2021-04-17 12:33:57 basicAuthPassword: *******************
2021-04-17 12:33:57 basicAuthUser:
2021-04-17 12:33:57 bbBranch:
2021-04-17 12:33:57 bbRepo:
2021-04-17 12:33:57 bbToken: *******************
2021-04-17 12:33:57 bunnycdnStorageZoneAccessKey: *******************
2021-04-17 12:33:57 bunnycdnPullZoneAccessKey: *******************
2021-04-17 12:33:57 bunnycdnPullZoneID:
2021-04-17 12:33:57 bunnycdnStorageZoneName:
2021-04-17 12:33:57 bunnycdn_api_host: *******************
2021-04-17 12:33:57 cfDistributionId:
2021-04-17 12:33:57 completionEmail:
2021-04-17 12:33:57 crawl_delay: 0
2021-04-17 12:33:57 crawl_increment: 5
2021-04-17 12:33:57 crawlPort:
2021-04-17 12:33:57 delayBetweenAPICalls: 0.2
2021-04-17 12:33:57 deployBatchSize: 10
2021-04-17 12:33:57 excludeURLs: /archives
/hello-world
/sample-page
2021-04-17 12:33:57 ghBranch:
2021-04-17 12:33:57 ghCommitMessage:
2021-04-17 12:33:57 ghRepo:
2021-04-17 12:33:57 ghToken: *******************
2021-04-17 12:33:57 glBranch:
2021-04-17 12:33:57 glProject:
2021-04-17 12:33:57 glToken: *******************
2021-04-17 12:33:57 netlifyHeaders:
2021-04-17 12:33:57 netlifyPersonalAccessToken: *******************
2021-04-17 12:33:57 netlifyRedirects:
2021-04-17 12:33:57 netlifySiteID: wpstat.netlify.app
2021-04-17 12:33:57 removeConditionalHeadComments: 1
2021-04-17 12:33:57 removeHTMLComments: 1
2021-04-17 12:33:57 removeWPLinks: 1
2021-04-17 12:33:57 removeWPMeta: 1
2021-04-17 12:33:57 rewrite_rules:
2021-04-17 12:33:57 rename_rules:
2021-04-17 12:33:57 s3Bucket:
2021-04-17 12:33:57 s3Key:
2021-04-17 12:33:57 s3Region:
2021-04-17 12:33:57 s3Secret: *******************
2021-04-17 12:33:57 selected_deployment_option: netlify
2021-04-17 12:33:57 targetFolder:
2021-04-17 12:33:57 useBasicAuth:
2021-04-17 12:33:57 Installed extensions:
2021-04-17 12:33:57 Core,date,libxml,pcre,zlib,filter,hash,readline,Reflection,SPL,session,cgi-fcgi,bcmath,ctype,curl,dom,fileinfo,ftp,gd,gmp,iconv,intl,json,mbstring,openssl,PDO,standard,SimpleXML,tokenizer,xml,xmlwriter,zip,mysqlnd,Phar,xmlreader,mysqli,pdo_mysql,Zend OPcache
2021-04-17 12:33:58 BAD RESPONSE STATUS (404): /ads.txt
2021-04-17 12:34:23 BAD RESPONSE STATUS (400): /wp-json/oembed/1.0/embed

Exporting as zip and uploading to Netlify works
“Test Netlify Settings” is also successful

Everything seems to be fine again. The only difference was a different Wifi connection when it stopped working. The one where it wouldn’t upload was definitely faster, so I have no idea what happened.

1 Like

Hi @ibrooooo,

Sorry for the late reply. Glad it got working again. This was with Static HTML Output or WP2Static plugin? Looks like the former, which uses a method to deploy the whole site as a ZIP via Netlify’s API.

WP2Static’s Netlify deploy only deploys required/changes files since previous deploy.

As such, the Static HTML Output Netlify deploy is more prone to issues, especially with poor network connectivity.

Hi @leonstafford. This was with StaticHTML Output. I haven’t done any exports recently, but everything seemed to go back to normal on my home WiFi. I’m still not sure what happened, you’re probably right about it being a network issue. The problematic network was significantly faster, but I never checked if there was some kind of limit for uploads. :man_shrugging: