error-code

GCP IoT Error on sending new device configuration: “Error 413 (Request Entity Too Large)!!”

删除回忆录丶 提交于 2019-12-11 14:55:29
问题 I'm trying to send my GCP IoT device a new configuration. The Base64-encoded binary string is approximately 15k bytes in length. GCP IoT device config size limit is 64k according to the docs. But I'm still getting a 413 (request entity too large) error. What am I doing wrong? 15k seems incredibly tiny to be producing such an error. Thanks for any help. Here's the JavaScript code that sends the config data: sendDeviceConfig(deviceId, configPayload) { const parentName = `projects/${this

Error Codes Media Player syntax and definition

主宰稳场 提交于 2019-12-11 14:19:59
问题 I cannot find any documentation on error codes with regard to Android. I am putting together an app that seemed to be working on a lower level API setup but not on a higher one. The error occurs when trying to play an audio file and like I said it all worked in a lower version. The error code I see is in the log are: MediaPlayer info/warning (1, 32) MediaPlayer Info (1,32) MediaPlayer info/warning (1,26) MediaPlayer Info (1,26) MediaPlayer error(351, -4) MediaPlayer Error(351,-4) VideoView

Getting the linux error code from make in Vim

泪湿孤枕 提交于 2019-12-11 13:36:47
问题 I'm trying to get the "0 of success, nonzero if error" return code from make in Vim. Specifically, I am on Ubuntu and using v:shell_error does not work. After digging around and looking at this question, it seems to be because of my shellpipe setting, which is shellpipe=2>&1| tee The tee pipes the make output back into vim. The shell is apparently returning the error code from tee to vim and not from make. How do I get make's error code instead? 回答1: You can try to make a custom function for

Error using Windows Driver Kit DriverPackagePreinstall

与世无争的帅哥 提交于 2019-12-11 12:28:35
问题 I am trying to preinstall an .inf driver after my windows program loads and was using this question as an example. I am writing in VB.Net while the original question was done in C# so it might be something I lost in translation but here's what I have: Public Shared Function PreInstall(ByVal fileName As String, Optional ByVal useDefaultLocation As Boolean = True) As Boolean Try Dim file As String = IIf(useDefaultLocation, DriverLocation(fileName), fileName) Dim result As Int32 =

Nginx returns 502 error when php-fpm returns 500

萝らか妹 提交于 2019-12-11 11:08:34
问题 I'm running nginx with php-fpm. Whenever my Symfony app crashes, it returns a 500 error with the debug info and stack traces I need. The problem is Nginx dumps that info and returns a 502 error with no content. How can I configure nginx to forward along the 500 error and content from php-fpm? 回答1: You can use "proxy_intercept_errors on" to transfer error code to client. http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors 回答2: If your Symfony app crashes before any

Azure application gateway throws 502 when application sends 401

做~自己de王妃 提交于 2019-12-11 09:48:31
问题 Azure application gateway displays 502 bad gateway error , while application returns 401 or 500 errors . It should send whatever the application sends but by default it sends 502 . Any idea what happen and any configuration or code change suggestions? EDIT: We are using node js for our API service. When a client tries to hit the endpoint without any auth header , then the service will return 401 error . This error is transformed into 502 when it's passing the App gateway. 回答1: General

OncePerRequestFilter unable to set error code different than 404

纵饮孤独 提交于 2019-12-11 07:05:40
问题 I have a Spring application (not using Spring boot) deployed to tomcat I'm trying to return error 401 ( HttpServletResponse.SC_UNAUTHORIZED ) on specific URLs in given condition using OncePerRequestFilter , But I keep getting Not found error: Response code: 404 My Filter(removed conditions): @Component public class MyFilter extends OncePerRequestFilter { private static final Logger logger = Logger.getLogger(MyFilter.class); @Override protected void doFilterInternal(HttpServletRequest request,

How to set the ErrorCode of a ManagementException?

北战南征 提交于 2019-12-11 05:06:48
问题 I want to handle a ManagementException exception for a specific ErrorCode only and am having trouble writing the unit test for it. Ordinarily, I would write the test so that it is something like the following: Searcher search = MockRepository.GenerateMock<Searcher>(); // wrapper for ManagementObjectSearcher ... search.Expect(s => s.Get()).Throw(new ManagementException()); ... However, this doesn't set the ErrorCode to the one that I want in particular, indeed ManagementException doesn't have

errorCode for The process cannot access the file 'XYZ' because it is being used by another process

99封情书 提交于 2019-12-11 03:47:45
问题 I using C# .NET , vs 2008 , .net 3.5 For me, is difficult, but I need sample code in C# for this: How get the error code of IOException "The process cannot access the file 'XYZ' because it is being used by another process." For example, in my issue. I try delete file, and I get "The process cannot access the file 'XYZ' because it is being used by another process." Exception. try { File.Delete(infoFichero.Ruta); } catch (IOException ex) { // ex.Message == "The process cannot access the file

What are the capitalized text identifiers for Win32 error codes called, and how can they be determined programmatically, given an error code?

断了今生、忘了曾经 提交于 2019-12-11 01:44:27
问题 In listings of Win32 error codes, each error has three components: The numeric error code A descriptive message An identifier consisting of capitalized words separated by underscores According to the documentation, the term "message identifier" refers to the descriptive message, but it doesn't say what the term is for the capitalized error name, and I haven't been able to find that anywhere. These identifiers appear to be analogous to what's called the "Error Id" in a PowerShell ErrorRecord