Git Product home page Git Product logo

servicenow-instance-wakeup's Introduction

Hi there stranger πŸ‘‹

I am a software engineer with many years of experience in the area of software development. My focus is on api-centric apps. Mostly SPA+API. I have experience with containers, devops, maintaining linux servers in a larger scale and also virtualization amongst other things. I am no stranger to javascript or web standards either. I think I am a principial man, and I believe principles are important.

Most of the stuff I create I am also using personally, so it is not about quantity really. I appreciate all constructive feedback and if it has added value I am happy with making it happen.

I'm am a founder of a few open source Go projects like sn-edit, telegram-rss-bot and a couple others. If you think you can contribute or you've found some bugs, please post an issue and I will take a look asap!

Visit my portfolio website for more.

Also follow me on twitter if you like here!

πŸ’¬ Some of my favourite quotes which drive me every day:

β€œNever give up on something that you can't go a day without thinking about.” ― Winston Churchill

"Free will is not free..." ― Westworld

If you have some questions, then feel free to shoot me a message at my email you can find here on my profile. I will try to reply to all of you!

Disclaimer: All of my statements made on this platform are simply my opinions and they might not be the same as my current employer's opinions. Please respect this while discussing with me πŸ™‚, appreciate your understanding!

servicenow-instance-wakeup's People

Contributors

0x111 avatar cheipol avatar dependabot-preview[bot] avatar gu-does-git avatar robertoalvarezalonso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

servicenow-instance-wakeup's Issues

Issue passing creds

Hi,

I have updated the config.json with the proper creds and it returns an Exit Status of 1. I also tried to use CLI option for creds and that returns an Exit Status of 2. Curious if you have ran into this and if it is maybe something I am missing on my side. Appreciate any assistance, thanks!

context deadline exceeded

Login successful!
Detecting the wakeup button element to determine if we are on the developer portal homepage...
could not find shadow element (header status bar): context deadline exceeded

I am new to docker so this maybe user error. Command I ran:
docker run -e USERNAME=[email protected] -e PASSWORD=password ruthless/servicenow-instance-wakeup

could not set viewport: context canceled

Trying to run the wake up instance code inside a docker container and seeing the following error. Can you help me with this.
"could not set viewport: context canceled"

How to run it in a Windows machine

Hi there,

Is there an executeable or something to use this in a Windows machine? What are the steps to use it in a windows machine without the Docker way?

many thanks

Could not find shadow element

Hello,
I wanted to alert you that the program seems to be erroring out with the following output:

Filled password field with your password ******
Clicking the submit button...
Clicked Submit button
Login successful!
Detecting the wakeup button element to determine if we are on the developer portal homepage...
could not find shadow element (header status bar): context deadline exceeded

Let me know if there's additional logs or troubleshooting I can provide to help.

Parameters not working

Hi,
I cant get the cli parameters work.
If I launch the program with parameters and a config.file, it takes the data from the config file instead of the one from the parameters.
If I launch the program with parameters and deleting the config.file it raise an error saying that you need a config file.

Thanks!

PS: Thanks for this program, its really usefull! ;)

could not find start building button: context deadline exceeded

Hi,

First of all thanks for your code, its fantastic.

I dont know what i missed but its not working for me. I got below error but i remember after several hits it got successfull.

But its not working every time. Moreover Just for your reference.

ubuntu@dev:~$ docker run -e USERNAME='*****@*****' -e PASSWORD='*****@*****' ruthless/servicenow-instance-wakeup:v0.6 -e DEBUG='true' -e HEADLESS='true' -e TIMEOUT='180'
2023/06/07 11:02:28 Starting the app with debug=false/headless=true/account='*****@*****'
Successfully set the viewport...
Navigating to the webpage: https://developer.servicenow.com/userlogin.do?relayState=https%3A%2F%2Fdeveloper.servicenow.com%2Fdev.do%23!%2Fhome%3Fwu%3Dtrue
Successfully navigated to the webpage...
Searching for the #logo-now element...
Found #logo-now element
Filling out the username field...
Filled username field with '*****@*****'
Clicking the next button...
Clicked Next button
Searching for the password field...
Found password field
Filling out the password field...
Filled password field with your password ******
Clicking the Sign In button...
Clicked Sign In button
Login successful!
Setting cookies to pre-confirm cookie modal!
Cookies set!
could not find start building button: context deadline exceeded

Thanks in advance.
//papseddy

Does not work anymore ?

Thanks for that tool !

It seems that since around mid September, it is no more working, I get:

docker run -e USERNAME="$SERVICENOW_DEVELOPER_USERNAME" -e PASSWORD="$SERVICENOW_DEVELOPER_PASSWORD"  ruthless/servicenow-instance-wakeup:latest  
2021/10/28 07:46:50 Starting the app with debug=false/headless=true/account=xxxxx
Successfully set the viewport...
Navigating to the webpage: https://developer.servicenow.com/ssologin.do?relayState=%2Fdev.do%23%21%2Fhome
Successfully navigated to the webpage...
Searching for the .logo element...
Found .logo element
Filling out the username field...
Filled username field with xxxx
Clicking the next button...
Clicked Next button
Searching for the password field...
Found password field
Filling out the password field...
Filled password field with your password ******
Clicking the submit button...
Clicked Submit button
Login successful!
Detecting the wakeup button element to determine if we are on the developer portal homepage...


could not find shadow element (header status bar): context deadline exceeded

I understand that could not find shadow element (header status bar): context deadline exceeded is expected now and it was working even with that error before.

But my instance is not woken up (even after waiting for a while)

Any idea what might have changed ?

Timeout error?

could not find shadow element (header status bar): context deadline exceeded

Mask password

Mask password field, to not store it in plaintext inside of the config file

Docker Image

I have created a PR for a docker image using the chromedp/headless-shell image that resolves all dependencies and will simply work.

IF you want to simplify this even further you could create an automated build process on docker hub from this repo and with each update, it will build a later release for you. I have completed a test that can be tested and verified at

https://hub.docker.com/r/frackena/servicenowinstancewakup

this would enable doing the following without the need for users to perform a build themselves while enabling the image to stay 100% up to date without the external intervention of having to do a PR out to my repo.
docker pull 0x111/servicenowinstancewakup
docker run -e USERNAME='YOUR_USERNAME@YOUR_DOMAIN.com' -e PASSWORD='YOUR_SERVICENOW_DEVELOPER_PASSWORD' 0x111/servicenowinstancewakup

Frame issue when running script

Hi,

I am receiving a 'frame' issue when running the script. It launches to the login page but when it's time to pass the credentials, it just hangs. I have had random success with it passing them but have only been successful with it 2 out of maybe 20 times and even then, it does not make it to the wake up piece of the instance. Any help would be appreciated.

image

Unable to find status bar?

I am getting the following output:

Clicking the next button...
Clicked Next button
Searching for the password field...
Found password field
Filling out the password field...
Filled password field with your password ******
Clicking the submit button...
Clicked Submit button
Login successful!
Detecting the wakeup button element to determine if we are on the developer portal homepage...
could not find shadow element (header status bar): context deadline exceeded

Did something change on the snow side?

Errors while executing on a headless node

Hello,

I am running the binary as follows:

./servicenow-instance-wakeup-linux-amd64 -username [email protected] -password mypassword  -headless -debug

From the debug:

{"method":"Target.receivedMessageFromTarget","params":{"sessionId":"5BA1B278B31922A65ADF5F1AFAA3984D","message":"{\"error\":{\"code\":-32000,\"message\":\"Could not compute box model.\"},\"id\":10929}","targetId":"789178E05B163391DC942D671B33FFDE"}}

The exit code is 1.

status of the container changes to exited(1)

Image created, build..After running status of the container changes to exited(1) automatically. Port 9222/tcp not bounded
I'm using docker on Windows 10 (docker container- Linux).

how to get it working

im new to Go language .. how to get this working, basic steps would be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.