Can't reach Node JS api behind Cloud9 - cloud9-ide

I am creating a simple rest api with hapi and using Cloud9 IDE. I can access the API endpoint within the same browser as the IDE uses but can't reach the api with code. Instead of JSON output I get the Cloud9 sign in page source.
Any ideas to set this up correctly?

Your workspace is probably private. You can choose to make your server public by performing the following steps:
Sign into c9.io and open the workspace in question
Click on the 'Share' menu on the top left of the IDE
When the Share dialog opens, check 'Public' next to the 'Application' row
Close the sharing dialog and test accessing your server from the api again.
Hope this helps!

Related

Problem adding a web reference to an ASP.NET project in Visual Studio 2019

I have seen a lot of similar questions on here, but they seem to assume that the creation of the web service is being tested. I need to be able to connect to an existing web service that I did not create, that is already in use and being used by a lot of systems. This service works, and I'm able to enter the URL in the browser, it returns the XML as it should. When I try to add a web reference (right-clicking 'references', selecting add service reference, then clicking 'Advanced' - I put the URL for the service in the URL box and click the arrow. It previews the XML in the box, and it looks great. However, in the section that says Web Services found at this URL, it shows the error:
"The document at the url http://xxx:8090/a/b/list (actual server
address removed for now) was not recognized as a known document type."
The box to add a web reference name and the add reference buttons are both grayed out. How can I get this reference added so I can write an app that browses this service and others (this is the simplest of the ones I need to work with)?

How to do chrome debugging?

I have developed a website. Some clients are getting the issue on chrome while opening a website. It's working on other search engines like firefox etc. How should I debug it in inspect mode(how to take his/her MOBILE(only) )on support? I know one solution which USB debugging but we can't take clients phone and do debugging. Is there any solution so that we can take his/her phone on inspect mode remotely?
One way that you can try is trying to plug error tracker on your website.
One of them is Sentry https://sentry.io (Its free, but if you want to use it with more volume and features, you have to pay for it.)
The way it works is you put sentry raven.js on your html head block
<script src="https://cdn.ravenjs.com/3.24.2/raven.min.js" crossorigin="anonymous"></script>
and then configure it by attaching the sentry api key (you can look at their documentation as well, they provide you with some code examples https://docs.sentry.io/clients/javascript/).
And after you can ask the client to browse your website using their device. By default sentry will track their session and show it in your sentry dashboard, including all of the javascript error and console output (just like when you do when you open inspect mode in your web browser). so you can try to debug the problem without having to take your client device.

Where is my exposed root of my webpage in the directory structure of Azure console?

I created a new .NET based web application named shabang using the web client and it displays the default woohoo-page when I browse to shabang.azurewebsites.net. Then, I discovered that there's a console in the web client and when I use it, I can see a directory structure including my login name, home directory etc. However, I can't find the files being served and, since I can see a web page being rendered when browsing, I'm certain they are there, somewhere.
Where is the (or equivalent of) wwwroot?
I've googled it but it's a bit hard to word what I'm asking in a way that Google will understand. Just a bunch of guides that are way too advanced to distill the information from.
By default, it is d:\home\site\wwwroot. It can also be modified using the Azure Portal.
Note that you should use the Kudu Console to see it. e.g. https://shabang.scm.azurewebsites.net

SSL certificate error with SAHI

I use SAHI for automated testing. Sahi has an internal proxy I use to interact with server application.
When I browse https websites, the proxy stores the sslcertificate. This certificate are self-signed and I have to import clicking on “Continue to this website (not recommended).”
It is boring but it but it works in many cases. Now I have to work with a hhtps site where this procedure doesn't work.
If i try to click on “Continue to this website (not recommended).”, nothing happen.
If I browse the site without proxy, I have no problems.
I use Win7, IE9.
Any idea?
If you are using the Open Source version of Sahi you could try the latest release of https://github.com/headissue/Sahi
since https://github.com/headissue/Sahi/releases/tag/v4.4.0-H7E it is possible to just click on the cert link on the startpage (s/dyn/Driver_initialized), then you never have to accept a certificate again.
I would appreciate if you try it out and feel free to contact me when you got any questions.
I didn't understand the reason of the problem, however I solved it just using Firefox.
With FireFox I can import the certificate just as usual, so I exported the certificate with FF than I importet it in IE and that's all.
Does any body know the reason of this issue?
Cause:
The website which you are trying to access may request resources from other domain other than the base domain(For base domain you have added the certificate while launching the URL)
Solution:
Open the developer tool goto network tab and search for any other domain and open the domain in a new tab, click "Proceed to website" (Chrome) or "I understand the risk" (firefox). Similarly do above steps for all the domains
Reload the page and check whether its displaying all the contents

Change Default Starting Domain For .NET Website Project

I have a Website project that I'm trying to debug using Fiddler. Fiddler doesn't track traffic from localhost, so I created another alias in my hosts file to use instead of localhost. Now I would like to have my project use the fiddler.local.com instead of localhost when I run my project. Is there a way to do this?
i.e. http://fiddler.local.com:1100/photoTest/default.aspx vs. http://localhost:1100/photoTest/default.aspx
See http://www.fiddler2.com/Fiddler/help/hookup.asp#Q-LocalTraffic.
Fiddler will track traffic from localhost, just use http://localhost./yoursite/default.aspx
Other than that, you right click on the website project in your solution, then select properties. The properties page will then appear, so select the web tab on the left hand side. There you will see an option to use IIS when debugging, which, when selected will enable you to set the url to use.

Resources