Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 413 Request Entity Too Large error on Firefox Android #305

Closed
geetpurwar opened this issue Nov 15, 2020 · 4 comments
Closed

Getting 413 Request Entity Too Large error on Firefox Android #305

geetpurwar opened this issue Nov 15, 2020 · 4 comments

Comments

@geetpurwar
Copy link

Hi,

I have tried auto padding and both reducing payload to just word "hello"
Still that doesn't work.

Any help.
Response attached.

Thanks.

Screenshot 2020-11-15 at 4 15 29 PM

@smeeckaert
Copy link

You should disable automatic padding it doesn't work with firefox on android.

@DorianThDev
Copy link

DorianThDev commented Apr 26, 2023

Hello,
I managed to make it work on Firefox for Android by reducing the padding to 2048 bytes (instead of 3052 as mentionned in the README).

$webPush = new WebPush();
$webPush ->setAutomaticPadding(2048);

Hope it can help others

@sierky
Copy link

sierky commented Feb 29, 2024

I've also noticed the padding issue with Firefox for Android, setting it to 2048 (or even higher up to at 2800) will fix it.

But another strange thing I noticed while looking at the content length of the eventual GuzzleHttp\Psr7\Request is that the content length always is 18 bytes larger than the padding should make it.

$webPush->setAutomaticPadding(2048);

[Content-Length] => Array
(
[0] => 2066
)

@Minishlink
Copy link
Member

See #108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants