AWS S3

Error parsing server response - AWS S3

Error parsing server response

by danitav93 » Tue Feb 20, 2018 4:39 pm

Hello!
I am trying to use this usefull extension. Attachments are uploaded on the bucket but on phpBB I get the "STATUS" like in the image and the floating warning says :"Error parsing server response".
Thank you for any help.
Screenshot (1).png
danitav93
Registered User
Posts: 15
Joined: Sun Jan 28, 2018 5:11 pm

Re: Error parsing server response

by austin881 » Tue Feb 20, 2018 5:02 pm

Open your web inspector and check the response coming back from the AJAX request that is made. There should be errors on your console or errors in the XHR response that should help you determine the issue.
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum
User avatar
austin881
Registered User
Posts: 287
Joined: Wed Jan 30, 2008 9:58 pm
Location: Texas, USA
Name: Austin Maddox

Re: Error parsing server response

by danitav93 » Tue Feb 20, 2018 5:24 pm

Thank for your attention.
Sorry I am not very expert about inspector, so for my very little experience it seems that there everything is ok, both POST and GET request return "200".
Screenshot (2).png
I am using phpBB3.2, could this cause any problem?
danitav93
Registered User
Posts: 15
Joined: Sun Jan 28, 2018 5:11 pm

Re: Error parsing server response

by austin881 » Tue Feb 20, 2018 5:41 pm

This is likely an issue caused by running phpBB 3.2. This extension was designed for 3.1.

I'd like to see the response from the request that is made when the image is uploaded. The screenshot you attached looks like the results of just saving the topic.

What exactly is the primary problem you are experiencing? You said the image uploads to the bucket okay, but does it display fine? When/why does the exclamation point appear?
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum
User avatar
austin881
Registered User
Posts: 287
Joined: Wed Jan 30, 2008 9:58 pm
Location: Texas, USA
Name: Austin Maddox

Re: Error parsing server response

by danitav93 » Tue Feb 20, 2018 6:01 pm

Uploaded file doesn't display at all, the delete button doesn't work too, in the sense that I cannot delete the uploaded file using the "delete file" button.
When I choose a file to be uploaded, I can track two (POST and GET) request in the inspector. They both return a status code 200 as it shown in the previous screenshot.
As I said the floating worning on the exclamation point sais:"Error parsing server response". I am try this extension on a brandly new 3.2. forum so I think you can reply this easily.
danitav93
Registered User
Posts: 15
Joined: Sun Jan 28, 2018 5:11 pm

Re: Error parsing server response

by danitav93 » Wed Feb 21, 2018 2:53 pm

Can I ask if you are planning to make a release for 3.2?
danitav93
Registered User
Posts: 15
Joined: Sun Jan 28, 2018 5:11 pm

Re: Error parsing server response

by austin881 » Wed Feb 21, 2018 3:38 pm

I haven't touched phpBB since this extension was released so I'm not set up to be able to fully test the issue you are experiencing right now. My replies to help you troubleshoot have been based on my hazy memory and wild guesses based on what I can remember.

Another thing you might check is your AWS permissions. When you save your AWS credentials in the ACP it should run a quick test upload to make sure your AWS S3 bucket permissions are set correctly. Did that go okay?

As far as updating this extension to be compatible with 3.2, I have no plans to do so. I'd welcome a Pull Request to my GitHub repo if anyone is interested in updating it. I just simply don't have the time to do so right now but I'm not ruling it out in the future. In fact, an issue was already created for it.
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum
User avatar
austin881
Registered User
Posts: 287
Joined: Wed Jan 30, 2008 9:58 pm
Location: Texas, USA
Name: Austin Maddox

Re: Error parsing server response

by danitav93 » Wed Feb 21, 2018 4:26 pm

When you save your AWS credentials in the ACP it should run a quick test upload to make sure your AWS S3 bucket permissions are set correctly. Did that go okay?
Yes everything was ok there...

I just simply don't have the time to do so right now but I'm not ruling it out in the future
I understand you perfectly.

Thank you for your kindness
danitav93
Registered User
Posts: 15
Joined: Sun Jan 28, 2018 5:11 pm

Re: Error parsing server response

by austin881 » Tue Sep 25, 2018 7:43 pm

I've added a FAQ to address questions surrounding phpBB 3.2 compatibility here: https://www.phpbb.com/customise/db/exte ... 3/faq/2701
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum
User avatar
austin881
Registered User
Posts: 287
Joined: Wed Jan 30, 2008 9:58 pm
Location: Texas, USA
Name: Austin Maddox