Title: HTTP Error
Last modified: August 22, 2016

---

# HTTP Error

 *  Resolved [pixeledmedia](https://wordpress.org/support/users/pixeledmedia/)
 * (@pixeledmedia)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/http-error-50/)
 * Hi there,
 * I get nothing but this error: ‘HTTP error’, when I try to upload an image in 
   my Media Library.
 * I’ve also updated my IAM policy to this…
 *     ```
       {
         "Version": "2012-10-17",
         "Statement": [
       	{
       	  "Effect": "Allow",
       	  "Action": "s3:*",
       	  "Resource": "*"
       	}
         ]
       }
       ```
   
 * …but it also still showing the ‘S3 Policy is Read-Only’ message. I am using the
   0.7.1 version of the code.
 * I’ve tried to upload different image types, using different browsers; but it 
   is still showing the ‘HTTP Error’ message in red when I try to upload anything
   to S3. Before I updated it, it wasn’t doing this.
 * Thanks
 * [https://wordpress.org/plugins/amazon-s3-and-cloudfront/](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [purzlbaum](https://wordpress.org/support/users/purzlbaum/)
 * (@purzlbaum)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/http-error-50/#post-5562365)
 * Same problem here.
 *  Plugin Contributor [Iain Poulson](https://wordpress.org/support/users/polevaultweb/)
 * (@polevaultweb)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/http-error-50/#post-5562367)
 * Is there any more to the HTTP error message? If so, could you post a screenshot
   of the error?
 * Thanks
 *  Thread Starter [pixeledmedia](https://wordpress.org/support/users/pixeledmedia/)
 * (@pixeledmedia)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/http-error-50/#post-5562375)
 * Hi,
 * Please view: [http://postimg.org/image/439a7mgm3/](http://postimg.org/image/439a7mgm3/)
 *  Plugin Contributor [Iain Poulson](https://wordpress.org/support/users/polevaultweb/)
 * (@polevaultweb)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/http-error-50/#post-5562413)
 * Thanks for the screenshot. Would it be possible to try a couple of things to 
   track this issue down?
 * Can you try uploading another image whilst check your browser’s debugging console
   for errors? For instructions on how to do this, see [https://deliciousbrains.com/wp-migrate-db-pro/doc/debugging-browser-console-errors/](https://deliciousbrains.com/wp-migrate-db-pro/doc/debugging-browser-console-errors/).
 * Then could you edit your wp-config.php file to allow debugging ([http://codex.wordpress.org/Editing_wp-config.php#Debug](http://codex.wordpress.org/Editing_wp-config.php#Debug))
   and add instead of `define( 'WP_DEBUG', false );` this code:
 * `define( 'WP_DEBUG', true );`
    `define( 'WP_DEBUG_LOG', false );` `define( 'WP_DEBUG_DISPLAY',
   true );`
 * Then when you next upload some media and get the error, can you check your `wp-
   content/debug.log` file for any errors that might have been thrown.
 * Feel free to post any logs or error messages to me here or on the issue on GitHub–
   [https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/183](https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/183)
 * Cheers
 *  Thread Starter [pixeledmedia](https://wordpress.org/support/users/pixeledmedia/)
 * (@pixeledmedia)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/http-error-50/#post-5562416)
 * Thanks for the reply, I get these errors:
 *     ```
       Fatal error: Uncaught exception 'Aws\Common\Exception\InvalidArgumentException' with message 'EU is not a valid region for Amazon Simple Storage Service' in /var/www/html/.../public_html/wp-content/plugins/amazon-web-services/vendor/aws/Aws/Common/Client/AbstractClient.php:131 
   
       Stack trace: 
   
       #0 /var/www/html/.../public_html/wp-content/plugins/amazon-web-services/vendor/aws/Aws/Common/Client/AbstractClient.php(183): Aws\Common\Client\AbstractClient::getEndpoint(Object(Guzzle\Service\Description\ServiceDescription), 'EU', 'https') 
   
       #1 /var/www/html/.../public_html/wp-content/plugins/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php(764): Aws\Common\Client\AbstractClient->setRegion('EU') 
   
       #2 /var/www/html/.../public_html/wp-content/plugins/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php(256): Amazon_S3_And_CloudFront->set_s3client_region(Array)
   
       #3 [internal function]: Amazon_S3_And_CloudFront->wp_update_attachment_metadata(Array, 3114) #4 /var/www/html/... in /var/www/html/.../public_html/wp-content/plugins/amazon-web-services/vendor/aws/Aws/Common/Client/AbstractClient.php on line 131
       ```
   
 *  Plugin Contributor [Iain Poulson](https://wordpress.org/support/users/polevaultweb/)
 * (@polevaultweb)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/http-error-50/#post-5562418)
 * Awesome thanks for that, that helps!
 * How long ago was the bucket created? In your AWS console, what does it say as
   the region of that bucket?
 *  Plugin Contributor [Iain Poulson](https://wordpress.org/support/users/polevaultweb/)
 * (@polevaultweb)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/http-error-50/#post-5562427)
 * Version 0.7.2 has just been released with this fixed – let us know if you have
   further issues.
 *  Thread Starter [pixeledmedia](https://wordpress.org/support/users/pixeledmedia/)
 * (@pixeledmedia)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/http-error-50/#post-5562429)
 * Thanks for the swift update! It works now.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘HTTP Error’ is closed to new replies.

 * ![](https://ps.w.org/amazon-s3-and-cloudfront/assets/icon-256x256.jpg?rev=1809890)
 * [WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-s3-and-cloudfront/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/reviews/)

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)

 * 8 replies
 * 3 participants
 * Last reply from: [pixeledmedia](https://wordpress.org/support/users/pixeledmedia/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/http-error-50/#post-5562429)
 * Status: resolved