Puppeteer: log in to access the site - puppeteer

I am verifying my GTM installations are correct with my URLs and GTM ids. However, some sites need authentication on Chrome to ask the server to send HTML and other JS files. Is there any way to find the popup and type the account and the password? Thanks.
Here is the error message if I tried to login on my browser and then run the script:
Error: net::ERR_INVALID_AUTH_CREDENTIALS at <URL>

Related

Google App script: Clasp login has stopped working

I've been using CLASP for the development of Google App Script. Clasp login command is no longer working after Clasp logout.
Steps
Execute Clasp login in VS Code Terminal. It redirects to the Google OAuth page.
Entered credentials and accepted the required permissions for Clasp in the browser
After successful authentication, it redirects to some localhost:port and then it gets stuck with this error
I've also tried using clasp login --no-localhost, but it gave different error:
The problem is that your browser is forcing https:// on your localhost. The way clasp login works is that it creates a temporary local server to receive the authorization code from Google in the OAuth flow. This server won't have an SSL certificate so forcing an https connection will return that error. Your potential solutions are:
Try to just change the start of the URL from https:// to http://, though if it's not working already it probably means that something is forcing it.
Create your own localhost cert. Though this is probably overkill, especially if you want it only to install Clasp.
Temporarily disable any browser extensions or settings that force SSL. Or try a different browser.
You seem to be on Edge, you can go to edge://net-internals/#hsts (or chrome://net-internals/#hsts on Chrome) then add localhost under "Delete domain security policies" and click "Delete".
If this is a corporate device check for any antivirus or policies that would force SSL everywhere and see if you can add localhost as an exception.
If you're completely restricted, you can authorize on another computer that doesn't force SSL on you and just copy the .clasprc.json file from the other %USERPROFILE% folder to your current one. The credentials will be associated with the Google account that you used to sign in.
As for why the -no--localhost flag doesn't work, this is because the Out-Of-Band flow has been deprecated. You can see this in the full description of the error:
This means that the "enter a code" flow is no longer supported and Google has blocked it. It's up to the devs to update the Clasp app to remove the flow or to implement a workaround. You can try to report it in their Github page. As far as I can tell there's not much that can be done about this setting and you most likely will need to go with the localhost method.

Report Server web service is not marked up

I have installed SSRS 2019. I can browse to the local web portal URL which is http://av/Reports/browse/
and get the usual message of:
You are not allowed to view this folder. Contact your administrator to
obtain the necessary permissions.
So then I load up another browser as administrator and try get to the web service URL to give myself permission :
http://localhost/reportserver
but I just keep getting a page with no markup. See the image. What else am I missing here? Im not getting any error but also I am unable to administer the report server.

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!

App to login on google+

I have had a look at some of the oAuth2 documentation and a few of the Developer videos. Tried to follow some examples but failed - never tried anything but VBA before.
My question is will this be possible?
What I would like to do is log out a user after they accept my app and log back in as a specific user in our domain for them to download a Chrome extension.
User accepts setup for uploading to database
App logs out user and logs in DB-Account
Relevant URL is opened in Chrome
Save to Google Drive extension is downloaded by user
Setup complete - yes, will sign out the DB-Account from Chrome

404 error for a file that is absolutely there

I am getting a 404 error for a file that is absolutely there.
It's at location domain.com/video/videoname.mp4. When I try to play it using Flash, it says video not found or access denied.
It keeps giving not found errors.
When I navigate to domain.com/video/, videoname.mp4 appears very clearly there. However, when I click it, it gives a 404 error.
Would this be a permissions issue?
It's a Windows server, which I'm less useful. There's also an IIS install, but it isn't used in the actual administration of this particular site.
My guess is a server setting or a permissions setting, but I'm trying to do a sanity check here.
You can setup the IIS server to run under a specific account one that doesn't have access issues. I would just make sure you create an application account to do this and don't put it on a user account. I know that there are IUSR accounts that are the default accounts that are used by IIS these default accounts might have the permission issues.
Another possibility is that the MIME type for the video is not setup properly. You could put a basic html file in this directory to test to see if the extension MIME mapping might be a problem.