http-error

HTTP Error 503, the service is unavailable

早过忘川 提交于 2019-12-17 02:33:18
问题 I'm really new to setting up web servers in general. I've got IIS 8 on Windows 8, and I'm trying to set up a little site locally, while doing some development. In IIS I choose Add Site, give a name, points to a location where I have a index.html file (I've tried different locations, latest in a c:\inetpub\wwwroot\test -folder) and otherwise use all default settings. However, when I try to browse to localhost I get HTTP Error 503. The service is unavailable. I've verified the pool is started,

HTTPError when using urllib2 read()

霸气de小男生 提交于 2019-12-13 00:29:14
问题 I'm trying to scrape a web page using urllib2 and BeautifulSoup. It was working fine and then when I put in an input() in a different part of my code to try and debug something, I got an HTTPError. When I tried running my program again, I got an HTTPError when trying calling read(). The error stack is below: [2013-07-17 16:47:07,415: ERROR/MainProcess] Task program.tasks.testTask[460db7cf-ff58-4a51-9c0f-749affc66abb] raised exception: IOError() 16:47:07 celeryd.1 | Traceback (most recent call

How to ensure that ServiceStack always returns JSON?

不想你离开。 提交于 2019-12-12 17:05:18
问题 We have decided to only allow requests with a Content-Type header "application/json". So, whenever we receive a request with an alternative or missing Content-Type header, we throw an HttpError. This should return a 400 response containing a JSON ResponseStatus body with relevant info. However, if a Content-Type text/plain is sent, we throw an HttpError, but the response's Content-Type is text/plain and content-length: 0. I expected ServiceStack's ResponseStatus to be returned. The

HTTP Error 500 Internal server error on high load ASP.NET application

大城市里の小女人 提交于 2019-12-12 11:50:21
问题 I get HTTP Error 500 Internal server error on a one simple page asp.net application. There are enough resources on the server. This page is frequently requested by a large number of clients. Is there any IIS related settings I have missed ? 回答1: The first stop here would be to enable Failed Request Tracing: Troubleshooting Failed Requests Using Tracing in IIS 7 Troubleshoot with Failed Request Tracing If doesn't produce anything that narrows things down then have a trawl through the System

DownloadManager - understanding ERROR_HTTP_DATA_ERROR

人走茶凉 提交于 2019-12-12 07:14:42
问题 My application depends heavily on android DownloadManager component to download files with approximate size of 3-10 mega bytes. when scaling up (to millions of downloads) the big picture is clear: ~50% of all downloads are failing due to ERROR_HTTP_DATA_ERROR. I'm getting this info from google analytics according to the documentation, this error code stands for: Value of COLUMN_REASON when an error receiving or processing data occurred at the HTTP level. I found this documentation not very

Google API Client users().get(userKey='name@domain.com') returns Not Authorized to access this resource/api

末鹿安然 提交于 2019-12-12 05:03:24
问题 I'm trying to see if an email account with name@domain.com already exists but I keep getting this error: googleapiclient.errors.HttpError: <HttpError 403 when requesting https://www.googleapis.com/admin/directory/v1/users/name%domain.comL?alt=json returned "Not Authorized to access this resource/api"> Although I successfully use the users().insert() method from my code with the same credentials. I've tried the "Try it" webpage for this exact request and noticed two things. It worked with the

Android WebView : onreceivedHttpError statusCode == 404

我的未来我决定 提交于 2019-12-12 04:15:50
问题 Here is the code: @Override @SuppressWarnings("deprecation") public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { **** } @Override @TargetApi(Build.VERSION_CODES.M) public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) { *** } @Override @TargetApi(Build.VERSION_CODES.M) public void onReceivedHttpError(WebView view, WebResourceRequest request, WebResourceResponse errorResponse) { *** } onReceivedHttpError

Google JavaScript API: catching HTTP errors

落花浮王杯 提交于 2019-12-12 01:22:01
问题 Abraham's answer to Google Calendar API : "Backend Error" code 503 exactly describes my situation. I get 503s at random places when looping through code that creates or deletes calendar entries. However, I can't figure out how to follow the advice that he cites from Google, which is to catch the error and retry the transaction using exponential back off. The code below is a loop that puts 8 new events into my calendar. It randomly experiences 503 errors, which are thrown from the Google API

GCP load balancer 502 server error and “backend_connection_closed_before_data_sent_to_client” IIS 10

时光总嘲笑我的痴心妄想 提交于 2019-12-11 15:53:29
问题 I have GCP load balancer with 4 IIS 10 web servers. Sporadically it comes with 502-Server error . In the logs it shows it is because of backend_connection_closed_before_data_sent_to_client . I have read thru the article https://cloud.google.com/compute/docs/load-balancing/http/ and it says keepalive timout need to be set to 620 seconds for nginx and apache. How do I do the same in IIS 10. 回答1: Figured this out after raising a ticket google cloud team. I am putting it here so that others can

Spring MVC — java.lang.ClassCastException

。_饼干妹妹 提交于 2019-12-10 21:31:46
问题 Hopefully this will be the last question from this Spring MVC newbie. When I try to call the front page of my Spring 3.2 MVC web application on Tomcat 7.0, I get an HTTP Error 500 with the following errors in my console. Error in console: SEVERE: Servlet.service() for servlet [jcbulboard] in context with path [/jcbulboard] threw exception [Unable to initialize TldLocationsCache: org.apache.tomcat.util.scan.StandardJarScanner cannot be cast to org.apache.tomcat.JarScanner] with root cause java