cancel
Showing results for 
Search instead for 
Did you mean: 

Getting an error Invalid request received when trying to create a customer

SOLVED

Getting an error Invalid request received when trying to create a customer

Hello, This is a new local docker installation.
It seems like 90% of the the app is working 
When i try to create a new customer https://localhost/customer/account/create, i click the "create an account" and the page just refreshes back to itself
in var/debug i see
[2022-04-20 21:10:31] main.DEBUG: Request validation failed for action "Magento\Customer\Controller\Account\CreatePost\Interceptor" {"exception":"[object] (Magento\\Framework\\App\\Request\\InvalidRequestException(code: 0): Invalid request received at /var/www/localhost/htdocs/vendor/magento/module-customer/Controller/Account/CreatePost.php:327)"} []

a lot of the forums suggested it is a permissions issue.
Since it is docker i did ( i realize , this is not the best )
/var/www/localhost/htdocs # chmod -R 777 var/
/var/www/localhost/htdocs # chmod -R 777 generated/
/var/www/localhost/htdocs # chmod -R 777 pub/

Still no difference. 

Would love to know any suggestions on how to resolve this or debug more

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Getting an error Invalid request received when trying to create a customer

Found this suggestion::

Dot(.) You may be running it like http://localhost/ or http://example/ . Somebody in stack overflow told me that it should be split by Dot. Dot is necessary otherwise that problem will occur. Than i changed my local virtual host name to http://localhost.co/ OR http://example.ty/ and the issue get fixed.

I changed all my references from localhost to 127.0.0.1 and it worked 

View solution in original post

1 REPLY 1

Re: Getting an error Invalid request received when trying to create a customer

Found this suggestion::

Dot(.) You may be running it like http://localhost/ or http://example/ . Somebody in stack overflow told me that it should be split by Dot. Dot is necessary otherwise that problem will occur. Than i changed my local virtual host name to http://localhost.co/ OR http://example.ty/ and the issue get fixed.

I changed all my references from localhost to 127.0.0.1 and it worked