mage2pro / core

A unique middleware that bridges the gap between the out-of-box Magento / Adobe Commerce software and the needs of real-world information systems
https://upwork.com/fl/mage2pro
MIT License
10 stars 12 forks source link

«Requested path adminhtml/Magento/backend/en_US/moment.min.js.map is wrong» is logged twice #324

Closed dmitrii-fediuk closed 1 year ago

dmitrii-fediuk commented 1 year ago

A part of https://github.com/mage2pro/core/issues/248

dmitrii-fediuk commented 1 year ago

The first record:

{
    "mage2pro/core": "10.3.0",
    "Magento": "2.4-develop",
    "PHP": "8.1.11",
    "URL": "https://localhost.com:2190/static/adminhtml/Magento/backend/en_US/moment.min.js.map",
    "Time": "2023-08-05 19:50:47",
    "Referer": "",
    "IP Address": "158.181.235.66",
    "Request Method": "GET",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
}
EXCEPTION
Requested path adminhtml/Magento/backend/en_US/moment.min.js.map is wrong.
************************************
1   Magento\Framework\App\StaticResource::launch
    generated/code/Magento/Framework/App/StaticResource/Interceptor.php:23

2   Magento\Framework\App\StaticResource::launch
    lib/internal/Magento/Framework/App/Bootstrap.php:264

3   Magento\Framework\App\Bootstrap::run
    pub/static.php:13

1   Magento\Framework\App\StaticResource::launch
    generated/code/Magento/Framework/App/StaticResource/Interceptor.php:23

2   Magento\Framework\App\Bootstrap::run
    lib/internal/Magento/Framework/App/Bootstrap.php:264
dmitrii-fediuk commented 1 year ago

The second record:

[
    Mage2.PRO: {
        "mage2pro/core": "10.3.0",
        "Magento": "2.4-develop",
        "PHP": "8.1.11",
        "URL": "https://localhost.com:2190/static/adminhtml/Magento/backend/en_US/moment.min.js.map",
        "Time": "2023-08-05 19:50:47",
        "Referer": "",
        "IP Address": "158.181.235.66",
        "Request Method": "GET",
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
    }
    channel: main
    context: []
    datetime: Monolog\DateTimeImmutable "2023-08-05T19:50:47.621458+00:00"
    extra: []
    level: 400
    level_name: ERROR
    message: Requested path adminhtml/Magento/backend/en_US/moment.min.js.map is wrong.
]

1   Df\Framework\Log\Dispatcher::handle
    https://github.com/mage2pro/core/tree/10.3.0/Framework/Log/Dispatcher.php#L78

2   Monolog\Logger::addRecord
    vendor/monolog/monolog/src/Monolog/Logger.php:399

3   Monolog\Logger::error
    vendor/monolog/monolog/src/Monolog/Logger.php:650

4   Magento\Framework\Logger\LoggerProxy::error
    lib/internal/Magento/Framework/Logger/LoggerProxy.php:130

5   Magento\Framework\App\Bootstrap::run
    lib/internal/Magento/Framework/App/Bootstrap.php:269
dmitrii-fediuk commented 1 year ago

Fixed.