Unable to upload to AWS S3. "The remote server returned an error: (400) Bad Request."

I’ve tested my credentials and security settings, I can successfully upload a file using the access key I provided in a third-party tool, so I’ve ruled that out as a possibility.

This is what I get in the console:


MainFrameActions: Packaging (HTML5): HTML5Platform.UploadToS3Worker: Could not connect to S3, incorrect S3 Keys? System.Net.WebException: The remote server returned an error: (400) Bad Request.
MainFrameActions: Packaging (HTML5):    at System.Net.HttpWebRequest.GetResponse()
MainFrameActions: Packaging (HTML5):    at HTML5Platform.UploadToS3Worker(FileInfo Info, String KeyId, String AccessKey, String BucketName, String FolderName)

I thought that maybe because my bucket was called “my.bucket” that the ‘.’ could be causing some kind of formatting issue, so I created a second bucket called “mybucket”. Setup the security for it and now I get a different error when trying to upload:


MainFrameActions: Packaging (HTML5): HTML5Platform.UploadToS3Worker: Could not connect to S3, incorrect S3 Keys? System.Net.WebException: The remote server returned an error: (403) Forbidden.
MainFrameActions: Packaging (HTML5):    at System.Net.HttpWebRequest.GetResponse()
MainFrameActions: Packaging (HTML5):    at HTML5Platform.UploadToS3Worker(FileInfo Info, String KeyId, String AccessKey, String BucketName, String FolderName)

So now its a 403, changing over to the other bucket goes back to a 400. No clue…

Any ideas?

i have the same question

If you haven’t figured this out by now, I would suggest submitting an AnswerHub thread. If you do choose to submit an AnswerHub thread, please make sure that you include as many details about what you’ve tried and what’s happening. Please also include a link to your game if you have it available.

Thanks!