http-status-code-500

Facebook graph API response size limiting (error code 1)

邮差的信 提交于 2020-01-14 08:59:09
问题 Just sharing some information I came across while testing my application. Facebook Graph API implements rate limiting as described on their documentation page. Today I was trying to retrieve the feed from CNN facebook page and I got the following 500 error: {"error":{"code":1,"message":"Please reduce the amount of data you're asking for, then retry your request"}} This is the query I was trying to test: https://graph.facebook.com/v2.3/5550296508/feed?fields=id,actions,application,caption

Silverstripe 3.1 wont change to dev env

走远了吗. 提交于 2019-12-25 06:50:38
问题 My site is on live online server, after installing few modules ( user definded forms ) via SSH and Composer i get 500 internal server error. I try to run /dev/build/?flush but nothing is happening. Again the some error! I check in chrome to inspect in network tab and there is also 500. So dev env in not enabled. I try to enable it: _config.php Config::inst()->update("Director", "environment_type", "dev"); config/config.yml : Director: environment_type: 'dev' And nothing is happening. It wont

How to use pathinfo in php?

a 夏天 提交于 2019-12-25 01:24:54
问题 I am working on a php code as shown below on which Line#A prints the following array (shown below php code). My code doesn't seems to go inside switch statement. I am not sure why. I added print_r($parts) at Line A in order to print the value of $parts. php code: <?php if (!empty($_POST['id'])) { for($i=0; $i <count($mp4_files); $i++) { if($i == $_POST['id']) { $f = $mp4_files[$i]; $parts = pathinfo($f); print_r($parts); // Line A switch ($parts['extension']) { echo "Hello World"; // Line B

VueJS HTTP request error 500 Handling

邮差的信 提交于 2019-12-24 09:17:18
问题 I am having this problem where I make HTTP Request to the API and in case of error ( specially error 500) the JS just breaks or goes into infinite loop and I should close the window and re-open the page. What I need is a message to pop up and in very generic way explain what happened. How should I handle this kind of error any ideas? Example Request: this.$http.get('people', { params }).then(({ data }) => { this.setFetching({ fetching: false }) }) 回答1: then accepts a second callback to handle

Internal server error - Drupal 6

我们两清 提交于 2019-12-16 18:02:56
问题 I have Drupal 6 Site. I have enabled compression of CSS & JS files. Last night I uploaded couple of css files. I cleared the Cache from Drupal site. It was working fine.. But this morning when I opened the site, it is throwing error 500 Internal Server Error. Contact your system administration. I logged into as admin anyhow & disabled the compression so all the css & js files issue got fixed but the images that are under sites/default/files/ are not loading & getting 500 Error for these files

Solve 500 response Laravel (Uncaught UnexpectedValueException: Laravel.log)

浪尽此生 提交于 2019-12-13 03:20:03
问题 I have a problem with my (new/clean) Laravel (tried v5.2 and v5.5) application on Centos 7. It shows a 500 error when i visited the URL of the application with no error. I checked the log file of apache (/etc/httpd/logs/error-log.log) what contained the 2 errors bellow: [Mon Dec 04 10:32:34.108956 2017] [:error] [pid 25889] [client 192.168.1.240:63437] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/public/blog_project/storage/logs/laravel.log" could not be

Make Alfresco Web Script show error 500 as JSON rather than HTML

孤人 提交于 2019-12-12 06:58:42
问题 I am writing an Alfresco Web Script that will be consumed by external computers. When I throw a WebScriptException, I would like the error 500 to come with an error page in JSON, rather than HTML, so that the external computers can parse it. Right now I am getting this: How to get JSON instead? I see that some Web Scripts manage to produce error pages as JSON (for error 401 though, so probably before the Web Script actually gets called): 回答1: You can create a freemarker dedicated for each

Custom 404 and 500 errors not working

孤街浪徒 提交于 2019-12-12 05:38:43
问题 Got custom 404 and 500 error pages which don't work. I'm given the following error for both pages, when trying to access directly or via error: error img .htaccess content: DirectoryIndex index.php RewriteEngine on RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ./index.php/$1 [L,QSA] ErrorDocument 404 /error_docs/404.php ErrorDocument 500 /error_docs/500.php error pages both contain: <p

Status 500 using requests in Python

空扰寡人 提交于 2019-12-12 04:48:09
问题 So I am working on sending images to an url. And I planned to use Python to make the POST requests. My code looks like this: import requests headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.90 Safari/537.36'} response = requests.request('POST', url, headers=headers, files={'file':open('1-watermarked-page.PNG', 'rb')}) print (response.status_code) When I run this, I am getting a status code of 500. I tried to replace the "files"

Django - 500 internal server error “no module named django”

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 03:28:05
问题 django return 500 internal server error (apache 2.4.10, ubuntu 15.04, django 1.9.6) apache log: [wsgi:warn] mod_wsgi: Compiled for Python/3.4.2. [wsgi:warn] mod_wsgi: Runtime using Python/3.4.3. [mpm_event:notice] AH00489: Apache/2.4.10 (Ubuntu) mod_wsgi/4.3.0 Python/3.4.3 configured -- resuming normal operations [core:notice] [pid 9973:tid 140000454645632] AH00094: Command line: '/usr/sbin/apache2' [wsgi:error] mod_wsgi (pid=9976): Target WSGI script '/home/user/KeyShare/KeyShare/wsgi.py'