You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#105065 S3 'The server returned an invalid JSON response.'

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by vjer on Thursday, 20 August 2020 04:50 BST

vjer
Hi, new JCE Pro 2815 user, trying to set up S3 Filesystem.

So far I am able to create folders in S3 (following file directory path: images/authors/$username), however still no luck uploading images. After trying an upload, I get message: 'The server returned an invalid JSON response.'

Ive followed the set up instructions, wondering what I mightve missed..

Thanks

Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

vjer
sent, thank you 🙂

Ryan
I need to be able to access the JCE Editor Profiles, but your login does not allow me to.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

vjer
Sorry Ryan, I changed it to super user

Ryan
Have you checked the S3 Access Key and Secret Key using another S3 client?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

vjer
i do use s3 for another website, i'll create a new aws account to separate them

vjer
so i created a new aws s3 account, using new root user access keys- but same result. Creating folders and subfolders are fine, but still unable to upload images to them.

The json response appears to be like this:
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>E673E8631B1E661B</RequestId>
<HostId>
OnNs2v4iHC0cfa5S6V4OLwCRuMkacVKwuaoqQkwLlKrxIyqBTDDw5RIvHj+Zgjrc81NBDlmEAPo=
</HostId>
</Error>

anything else i can check on the aws side?

Ryan
The bucket permissions are probably incorrect. Please see the example IAM permissions at the bottom of this article - https://www.joomlacontenteditor.net/support/documentation/filesystem-for-amazon-s3/configuration

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
See also - https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

vjer
ive set the bucket policies per example, still no joy.. also tried it with even more permissions but still nothing. also double checked my IAM user policy, even using my root user access key, but still same error.

is it strange that i can create/delete/list folders correctly, but not put objects?

Ryan
I ahve fixed this on your site with an update of the S3 Filesystem plugin, but there is an issue with the name of your S3 bucket. Because it contains ".com", it is creating an invalid url when used to produce the url for any media in the bucket.

You will need to change the bucket name, or use a CName for the bucket.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

vjer
Thank you Ryan!