所以我得到了这个错误,但我不知道为什么。When I run it on the server it's on,I get a 404 error with a simple request like this.
$json = file_get_contents('https://graph.facebook.com/me?access_token='.LONGSTRING);
错误是:
function.file-get-contents: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Fo
我有一个将axios请求提交到NodeJS后端服务器的MERN应用程序,但是由于某种原因,这些请求被发送到前端而不是后端。在本地设置时,该应用程序运行良好,但在Heroku上会出现以下错误:
GET https://heroku-app-name.herokuapp.com/app/order?query=soap&page=1 500 (Internal Server Error)
该请求正在尝试从前端GET。为什么后端的代理不再工作?
我一直在开发一个Spring MVC应用程序,它有自定义的错误页面,这些页面返回一个通用的错误消息和堆栈跟踪作为HTML注释。我目前正在使用HTML5的Appcache开发这个应用程序的离线功能。我的清单是这样的:
CACHE MANIFEST
CACHE:
... my explicit entries (not relevant) ...
FALLBACK:
... some fallback entries (not relevant) ...
<!-- This next line is relevant --!>
/ pageNotFoundOffline.html
我正面临着一个问题,我想不出来。我想使用file_get_contents或curl从我的其他站点获取数据,我正在首先验证文件是否存在于其他服务器上,但我得到了404错误,即文件不存在,甚至文件存在于服务器上。
$fileBlue = 'http://theblueish.com/file.txt'; // File on my other server
echo 'Url is: '.$fileBlue.'<br>';
$file_headers = get_headers($fileBlue);
print_r($file_h
当我试图在离子6中安装"npm @plugins/contacts“时,会出现以下错误
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@awesome-cordova-plugins%2fcontacts - Not found
npm ERR! 404
npm ERR! 404 '@awesome-cordova-plugins/contacts@*' is not in this registry.
npm ERR! 404 You should bug the author to publish
显然,我的.htaccess中的这些行导致服务器输出500,而不是当试图访问一个不存在的站点时出现的404错误。
RewriteEngine On
# Don't rewrite requests to /de or other real files
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^.*/(css|scripts)
# Rewrite incoming requests to their equivalent behi
Could not connect to localhost:3000
17:02:53
Error: Unexpected server response: 404
Handshake Details
Request URL: http://localhost:3000/socket.io/?EIO=3&transport=websocket
Request Method: GET
Status Code: 404 Not Found 我的express服务器监听3000端口,socketio http在443端口,我可以通过在ec2实例上托管此服务器,并在postman套接字连接