static-html-output icon indicating copy to clipboard operation
static-html-output copied to clipboard

Uncaught Exception: Exception: BAD RESPONSE STATUS FROM API (403) in

Open azevedown opened this issue 4 years ago • 5 comments

I tried to export my website to S3, but an error occurred ==> /var/log/nginx/error.log <== 2020/06/17 18:28:24 [error] 4296#0: *4566 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Exception: Exception: BAD RESPONSE STATUS FROM API (403) in /storage/web/wp-content/plugins/static-html-output-plugin/plugin/WP2Static/SitePublisher.php:2

I reinstall the plugin, but the error persists. Somebody get a same error?

tks

azevedown avatar Jun 17 '20 18:06 azevedown

@azevedown you can try the latest build from here: https://github.com/WP2Static/static-html-output-plugin/files/4789479/static-html-output-plugin-6.6.20.zip

(delete old and install/active new). Plugin name has changed to Static HTML Output ahead of next release.

In the old version, the Test S3 button gave false positives, fixed in latest builds, so you can check that Test button again, then we can work through the troubleshooting steps.

403 is for unauthorized, so I'd start by double-checking the AWS credentials for S3 (I usually start with most permissive, then scale back).

leonstafford avatar Jun 17 '20 18:06 leonstafford

@leonstafford I reinstalled the plugin and the error persists. I configured the credentials with "S3FullAccess", updated the php to version 7.4, but the error message keeps showing up. I increased php and nginx timeout times but it didn't work.

The plugin is in version 6.6.7. The strangest thing is that most of the files he can deploy, but there are still some references missing and my website is broken.

I did a test with a new wordpress installation, just installed the wp2static plugin and was successful.

Some help?

azevedown avatar Jun 23 '20 20:06 azevedown

"but there are still some references missing and my website is broken."

Please share logs of those broken URLs for sampling and addressing the issue.

Also, please try once in .zip deploy.

Thanks

thegulshankumar avatar Jun 24 '20 17:06 thegulshankumar

I had the same problem. Any updates on this?

quintcyril avatar Aug 12 '20 02:08 quintcyril

@quintcyril replied to you on the wp.org forum - basically, uncheck the 4 boxes for disabling Public ACL in the S3 bucket's properties.

leonstafford avatar Aug 12 '20 06:08 leonstafford