SignalR with Azure causes Bad gateway error 502 - signalr

I have setup a site on Azure which is causing bad gateway error even though it's working perfectly fine on local machine. Here's the error I am facing:
Also failed request logs contains the following error:
SignalR logs are following:
SignalR Logs

I was adding the following line Startup.cs Configuration method:
GlobalHost.DependencyResolver.UseSqlServer(sqlConnectionString)
But SQL Azure doesn't support it and that's what was causing the issue.

Related

Cannot connect to a localhost SQL server database in UWP

I have created a UWP application for testing purposes in which my purpose is to be able the application to connect to a ASP.NET Web API with a certificate for Indivual User Accounts, I've hosted the db into localhost, after ensuring the connection its correct and everything its ok I have deployed my UWP app, the problem is that when I execute a call to a method inside the Account controller (api/Account), the compiler throws me an exception which is the following:
System.Net.Http.HttpRequestException
Message=An error occurred while sending the request.
Source=System.Net.Http
...
Inner Exception 1:
COMException: The text associated with this error code could not be found.
The certificate authority is invalid or incorrect
I have searched for the problem but there's not a "specific" or "correct" answer I've found, could anyone help me with this issue please?
if code snippets are required, let me know!

Remote config not updating from console

I am facing a strange problem when I try to update my remote config value from firebase console and try to publish those changes, I am getting an error A general error occurred.. This problem happens randomly and when I checked my network console for the response I am getting a 500 error.
Following is the JSON response
{
code: 500
message: "Internal error encountered."
status: "INTERNAL"
}
Firebase Remote Config engineer here. We noticed some intermittent issues a few hours ago that we've since resolved. Thanks!

R shiny publish issue Unhandled Exception: HTTP 500: Internal Server Error

I was trying to publish my shiny app, it works fine in local, but when I try to publish it, i got this error:
Unhandled Exception: HTTP 500: Internal Server Error
What does this mean?
Don't know which part goes wrong, hope someone can help.
Same here, looks like they are having server issues...
HTTP 500 refers to an issue with the web server (service), don't worry it's not a problem on your end.
See: http://www.checkupdown.com/status/E500.html
You can periodically try to publish again until it works. You can also check the Shiny Google Discussion Group https://groups.google.com/forum/#!forum/shiny-discuss for shinyapps.io

SignalR negotiate fails (Bad Gateway)

Someone any idea, I’ve been struggling with this for some time.
I'm using SignalR (Asp.net 5). when I try to debug local (ISS 10.0 express) everything is working fine. SignalR is working (Long poll).
Now when I publish the app to Azure it I can access : .azurewebsites.net/signalr/hubs
but I cannot access .azurewebsites.net/signalr/hubs/negotiate
it returns:
The specified CGI application encountered an error and the server terminated the process.
When my web app calls $.connection.hub.start() it will fail.
GET XHR http://xxxx.azurewebsites.net/signalr/negotiate [HTTP/1.1 502 Bad Gateway]
I’m running out of idea's. Don't know how I can get more debug information.
Small selection of my ‘already tried’ list:
Set $.connection.hub.url path manual to http://xxxx.azurewebsites.net/signalr/
Enable/Disable websockets
Removed forwardWindowsAuthToken from the web.config httpPlatform
EDIT:
Now getting more details on this error:
CryptographicException: The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is impersonating.
Still absolutely no idea how to solve this!
Solved by using appBuilder.UseAesDataProtectorProvider();
(from Owin.Security.AesDataProtectorProvider;)
I have no idea if this is the best solution.

reCaptcha validation with timeout exception

I am using reCaptch in my MVC 3 web app running in the localhost.
Things were working fine few weeks back but suddenly failing.
Suddenly getting this error.
if(!ReCaptcha.Validate(_config.RecaptchaPrivateKey)){ <-- times out here
//process other fields in the form
}
As soon as I fill the form and hot submit I get this error :
The operation has timed out
Description : An unhandled exception occurred during the execution of the current ...
Exception Details : System.Net.WebException: The operation has timed out
Is this a proxy issue?
Is this because my site on localhost runs on port 3316?
localhost:3316/user/signup
I saw some posts that suggests that reCAPTCHA expects port 80 but my app runs on port 3316
What can be the issue?
Thanks
I got around this by creating proxy class that inherits IWebProxy.
Then specifying to use this proxy when internal, I had to transform it out for other environments that didn't need to use it.
See this question and accepted answer:
Is it possible to specify proxy credentials in your web.config?
The above link took some finding, so I favourited it for future use.

Resources