I am using Magento 2.4 and when accessed the site from frotend or backend got below error
{"0":"Expecting a string, got NULL","1":"#1 Laminas\\Uri\\Uri->parse() called at [vendor\/magento\/module-backend\/App\/Area\/FrontNameResolver.php:140]\n#2 Magento\\Backend\\App\\Area\\FrontNameR$
Hello @ishaqdahot
Run following commands :
sudo chmod 777 -R var/ generated/ pub/static/ pub/media/ php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento c:f
Hope it works !