How can i resolve 401 unauthorized error? - html

I have made a database in Couchdb and to be able to connect remotely I have created a dynamic DNS. If in postman or in the windows terminal I put the url of the database that is
http://administrator:password#mydomain:5984/database
I get the data in JSON.
but when i write the same URL in my HTML code, I get the 401 unauthorized error.
I have written exactly the same URL and I don't understand why i get the 401 error. Can someone help me?
I have configured CORS and Postman doesn't detect any mistake.

Related

Why do I get a 403 error when I tried to open a website?

I tried to go to [capterra.com], but I get this error:
403 ERROR
The request could not be satisfied.
Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)
Request ID: gl_jhiv6CXIVdD-qAeFEQXy9ymYLGqqXOR5MOKQI3Jpu2dlQk4tWIw==
What should I do?

SMTP Send Mail Task Failing

I have already gone through multiple links before posting and it is not a repeat question.I am not pretty sure that i should post it here or on server fault.
I am trying to configure the SMTP email task but running into error mentioned below.
System.Net.WebException: Unable to connect to the remote server
System.Net.Sockets.SocketException:An attempt was made to access a socket in a way forbidden by its access permissions ipaddress:25
I also tried to verify using powershell, if the SMTP is fine and below are the results:
Using Send-mailmessage : It is working really fine
Using Net.Mail.SmtpClient : I could send email to organization email ids but not outside.
Can someone help me understand where exactly the problem could be.
The problem was Antivirus was blocking the requests from SSIS but was allowing the powershell requests.

OpenShift & SwiftMail email authentication on remote site only

I am trying to send email via my gmail account and cannot find a solution to this error:
Fatal error: Uncaught exception 'Swift_TransportException' with message 'Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at .....
If I run my website on localhost (using win7, IIS Express and WebMatrix) my code works and the email is delivered. So my problem appears to be a possible configuration problem or misunderstanding on my part with OpenShift.
I have tried both port 465/SSL and 587/TLS and neither work on uploaded code.
Let me know what information to post to help track this problem down.
Many thanks in advance.
Simply change your gmail account security settings, it's work for me. There is no other issue it will be..cheers!

OpenID login fails if behind a SSL proxy in Chrome

I'm located behind a SSL proxy and am trying to use Chrome with StackOverflow, but I'm unable to authenticate to Google's server (or any others) and get the following error:
"Error 107
(net::ERR_SSL_PROTOCOL_ERROR): SSL
protocol error."
Can anyone explain to me why this would be happening? I am able to access https://chase.com with no issue, so I'm not sure why the SSO function is having an issue.
Additionally, I'm able to use IE to authenticate with SO and Google with no issue (how I'm posting this )
My query string looks like this.
https://www.google.com/accounts/o8/ud?openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.return_to=https://stackoverflow.com/users/authenticate/%3Fs%3D61ca4f73-a29d-4c67-b316-6b003cf50bb3%26dnoa.userSuppliedIdentifier%3Dhttps%253A%252F%252Fwww.google.com%252Faccounts%252Fo8%252Fid&openid.realm=https://stackoverflow.com/users/authenticate/&openid.mode=checkid_setup&openid.ns=http://specs.openid.net/auth/2.0&openid.ns.alias3=http://openid.net/srv/ax/1.0&openid.alias3.if_available=alias1,alias2,alias3&openid.alias3.required=alias4&openid.alias3.mode=fetch_request&openid.alias3.type.alias1=http://schema.openid.net/namePerson&openid.alias3.count.alias1=1&openid.alias3.type.alias2=http://schema.openid.net/contact/email&openid.alias3.count.alias2=1&openid.alias3.type.alias3=http://axschema.org/namePerson&openid.alias3.count.alias3=1&openid.alias3.type.alias4=http://axschema.org/contact/email&openid.alias3.count.alias4=1

IIS rejects 'Content-Type': application/json' requests

I have a working application where I am posting to webservices using Content-Type': application/json. I am moving this application to another web that is also on my local machine. My new web is not working though. I am getting 401 error when requesting data. I have found that if I use Content-Type': "application/x-www-form-urlencoded then I get data although not in a json format. What can possibly cause this 401 error?