[2] ErrorException in Bot.php line 20

file_get_contents(http://www.e-peddle.net/addons/cms/index/index): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

  1. $rs = Request::instance();
  2. $url = $rs->domain();
  3. if (file_exists($cacheDir . '/' . $cacheFileName) && (time() - filemtime($cacheDir . '/' . $cacheFileName)) < 600) {
  4. // 缓存文件存在且未超过10分钟,直接读取缓存文件内容
  5. $cachedData = file_get_contents($cacheDir . '/' . $cacheFileName);
  6. return $cachedData;
  7. } else {
  8. $index_content = $url . '/addons/cms/index/index';
  9. $index_content = file_get_contents($index_content);
  10. // 缓存文件不存在或超过10分钟,重新生成缓存并存储
  11. $dataToCache = $index_content;
  12. // 存储数据到缓存文件
  13. file_put_contents($cacheDir . '/' . $cacheFileName, $dataToCache);
  14. return $dataToCache;
  15. }
  16. }

Call Stack

  1. in Bot.php line 20
  2. at Error::appError()
  3. at file_get_contents() in Bot.php line 20
  4. at Bot::get_cms_index() in Index.php line 186
  5. at Index->index()
  6. at call_user_func_array() in Route.php line 78
  7. at Route->execute()
  8. at ReflectionMethod->invokeArgs() in App.php line 343
  9. at App::invokeMethod() in App.php line 470
  10. at App::exec() in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('/disk/wwwroot/www.e-...') in index.php line 24

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_REFERER
http://www.e-peddle.net/szi/metjno.html
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_ALI_CDN_REAL_IP
3.235.227.36
HTTP_X_CLIENT_SCHEME
http
HTTP_X_FORWARDED_FOR
3.235.227.36
HTTP_ALI_SWIFT_STAT_HOST
level2.all.e-peddle.net
HTTP_ALI_SWIFT_LOG_HOST
www.e-peddle.net
HTTP_EAGLEEYE_TRACEID
3adad01a17116672034634696e
HTTP_VIA
cn192.l1, kunlun3.cn192, l2cn2656.l2, cache28.l2cn2656
HTTP_HOST
www.e-peddle.net
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
www.e-peddle.net
SERVER_PORT
80
SERVER_ADDR
154.7.7.193
REMOTE_PORT
42232
REMOTE_ADDR
36.156.89.158
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/disk/wwwroot/www.e-peddle.net/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/disk/wwwroot/www.e-peddle.net/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711667203.7604
REQUEST_TIME
1711667203
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/disk/wwwroot/www.e-peddle.net/public/../application/
THINK_VERSION
5.0.25
THINK_START_TIME
1711667203.7616
THINK_START_MEM
407848
EXT
.php
DS
/
THINK_PATH
/disk/wwwroot/www.e-peddle.net/thinkphp/
LIB_PATH
/disk/wwwroot/www.e-peddle.net/thinkphp/library/
CORE_PATH
/disk/wwwroot/www.e-peddle.net/thinkphp/library/think/
TRAIT_PATH
/disk/wwwroot/www.e-peddle.net/thinkphp/library/traits/
ROOT_PATH
/disk/wwwroot/www.e-peddle.net/
EXTEND_PATH
/disk/wwwroot/www.e-peddle.net/extend/
VENDOR_PATH
/disk/wwwroot/www.e-peddle.net/vendor/
RUNTIME_PATH
/disk/wwwroot/www.e-peddle.net/runtime/
LOG_PATH
/disk/wwwroot/www.e-peddle.net/runtime/log/
CACHE_PATH
/disk/wwwroot/www.e-peddle.net/runtime/cache/
TEMP_PATH
/disk/wwwroot/www.e-peddle.net/runtime/temp/
CONF_PATH
/disk/wwwroot/www.e-peddle.net/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/disk/wwwroot/www.e-peddle.net/addons/