Skip to content

Commit

Permalink
Update browserless / puppeteer parameters
Browse files Browse the repository at this point in the history
Update some stdouts
  • Loading branch information
st-randers committed May 15, 2024
1 parent bde2f37 commit 3488a00
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion node-red/flows_cred.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"$": "0d22e24aebe10951804969b2b73fc3919WvaIw61mzzsUxHxYN/tPykTyuTXz9I="
"$": "e4ba8ef3ec5d76781a753f7e60d38065iAE="
}
2 changes: 1 addition & 1 deletion node-red/flows_js/change.5bae06aa5db3623e.flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Node = {
"from": "",
"to": "",
"reg": false,
"x": 1640,
"x": 1620,
"y": 1240,
"wires": [
[
Expand Down
4 changes: 2 additions & 2 deletions node-red/flows_js/change.8ed3ae75929488b9.flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ const Node = {
"t": "set",
"p": "presetStartDate",
"pt": "msg",
"to": "2023-09-01",
"to": "2024-01-03",
"tot": "str"
},
{
"t": "set",
"p": "presetEndDate",
"pt": "msg",
"to": "2023-12-31",
"to": "2024-12-31",
"tot": "str"
},
{
Expand Down
2 changes: 1 addition & 1 deletion node-red/flows_js/change.d30ba0f3f094c17d.flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Node = {
"t": "set",
"p": "browserless",
"pt": "msg",
"to": "{\t \"browserWSEndpoint\": \"wss://browserless.prototypes.randers.dk/?ignoreHTTPSErrors=true&exitOnPageError=false&protocolTimeout=10000&--no-zygote&--disable-site-isolation-trials&--disable-dev-shm-usage&--disable-features=IsolateOrigins&--deterministic-fetch&--disable-setuid-sandbox&--disable-gpu&headless=true\",\t \"headers\": {\t \"authorization\": \"Basic \" & authkey\t },\t \"slowMo\": 10\t}",
"to": "{\t \"browserWSEndpoint\": \"wss://browserless.prototypes.randers.dk/\" &\t \"?ignoreHTTPSErrors=true\" &\t \"&exitOnPageError=false\" &\t \"&protocolTimeout=30000\" &\t \"&--no-zygote\" &\t \"&--disable-site-isolation-trials\" &\t \"&--disable-dev-shm-usage\" &\t \"&--disable-features=IsolateOrigins\" &\t \"&--deterministic-fetch\" &\t \"&--disable-setuid-sandbox\" &\t \"&--disable-gpu\" &\t \"&headless=new\",\t \"headers\": {\t \"authorization\": \"Basic \" & authkey\t },\t \"slowMo\": 10\t}",
"tot": "jsonata"
}
],
Expand Down
2 changes: 1 addition & 1 deletion node-red/flows_js/debug.5bf2f8f7f4ae7736.flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Node = {
"tosidebar": true,
"console": true,
"tostatus": false,
"complete": "{\t \"worklet\": statusCode = 200 ? \"receipt download success\" : \"receipt download error\",\t \"statusCode\": statusCode,\t \"payload\": payload,\t \"error\": error.message\t}",
"complete": "{\t \"worklet\": statusCode = 200 ? \"receipt download success\" : \"receipt download error\",\t \"statusCode\": statusCode,\t \"payload\": payload ~> | $ | {},[receipts] |,\t \"error\": error.message\t}",
"targetType": "jsonata",
"statusVal": "",
"statusType": "auto",
Expand Down
7 changes: 2 additions & 5 deletions node-red/flows_js/function.adb383a374c3a116.flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ Node.func = async function (node, msg, RED, context, flow, global, env, util, pu
try
{
msg.pupController.browser = await pup.connect(msg.pupController.browserless);

//const pages = await msg.pupController.browser.pages();
//console.log("Found browser with pages: " + JSON.stringify(pages));

msg.pupController.page = await msg.pupController.browser.newPage();//pages[0];
msg.pupController.page = await msg.pupController.browser.newPage();
console.log("Puppeteer instantiated");
}
catch (error)
{
Expand Down
2 changes: 1 addition & 1 deletion node-red/flows_js/link_out.bf4eadb0010bea89.flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Node = {
"links": [
"bc52b2437e04a24c"
],
"x": 1815,
"x": 1735,
"y": 1240,
"wires": []
}
Expand Down

0 comments on commit 3488a00

Please sign in to comment.