René's URL Explorer Experiment


Title: browserstack-local sometimes breaks due to Incorrect JSON in stdout · Issue #127 · browserstack/browserstack-local-nodejs · GitHub

Open Graph Title: browserstack-local sometimes breaks due to Incorrect JSON in stdout · Issue #127 · browserstack/browserstack-local-nodejs

X Title: browserstack-local sometimes breaks due to Incorrect JSON in stdout · Issue #127 · browserstack/browserstack-local-nodejs

Description: Expected Behavior browserstack-local starts and works fine Actual Behavior browserstack-local starts and fails with next error SyntaxError: Unexpected token { in JSON at position 66 at JSON.parse () at //node_mod...

Open Graph Description: Expected Behavior browserstack-local starts and works fine Actual Behavior browserstack-local starts and fails with next error SyntaxError: Unexpected token { in JSON at position 66 at JSON.parse (...

X Description: Expected Behavior browserstack-local starts and works fine Actual Behavior browserstack-local starts and fails with next error SyntaxError: Unexpected token { in JSON at position 66 at JSON.parse (...

Opengraph URL: https://github.com/browserstack/browserstack-local-nodejs/issues/127

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"browserstack-local sometimes breaks due to Incorrect JSON in stdout","articleBody":"\u003c!--- Provide a general summary of the issue in the Title above --\u003e\r\n\r\n## Expected Behavior\r\n\u003c!--- Tell us what should happen --\u003e\r\nbrowserstack-local starts and works fine\r\n\r\n## Actual Behavior\r\n\u003c!--- Tell us what happens instead of the expected behavior --\u003e\r\nbrowserstack-local starts and fails with next error\r\n```\r\nSyntaxError: Unexpected token { in JSON at position 66\r\n    at JSON.parse (\u003canonymous\u003e)\r\n    at /\u003cproject path\u003e/node_modules/browserstack-local/lib/Local.js:59:23\r\n    at ChildProcess.exithandler (node:child_process:388:7)\r\n    at ChildProcess.emit (node:events:390:28)\r\n    at ChildProcess.emit (node:domain:475:12)\r\n    at maybeClose (node:internal/child_process:1064:16)\r\n    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)\r\nerror Command failed with exit code 1.\r\n```\r\n\r\n## Steps to Reproduce the Problem\r\nit's flaky, but often reproduces\r\n  1. start connection to BrowserStack before tests\r\n\r\n\r\n## browserstack local arguments\r\n```\r\n    local: true,\r\n    localIdentifier: \"\" // generated id:  `${\u003cproject name\u003e}_${os.userInfo().username}_${Math.round(Math.random() * 1e6)}` as string,\r\n\r\n    networkLogs: true,\r\n    consoleLogs: \"errors\",\r\n    resolution: \"1280x1024\",\r\n    seleniumVersion: \"4.0.0-alpha-6\", // also reproduced with \"4.1.2\", \"3.141.59\"\r\n    idleTimeout: 300,\r\n\r\n    os: \"Windows\",\r\n    osVersion: \"10\",\r\n\r\n    projectName: \"\" // project name as string,\r\n    sessionName: \"\" // name as string,\r\n    buildName: \"\" // name as string,\r\n```\r\n\r\n## Platform details\r\n \r\n  1. browserstack-local-nodejs version: 1.4.8, also reproduced on 1.4.9\r\n  2. node version: 16.13.0, also reproduced on 14.3.0, 14.18.0\r\n  3. os type and version: ubuntu/macos\r\n\r\n## Details\r\n\u003c!--- Provide a detailed description of the issue that you are facing. --\u003e\r\nI made fork with logging of reponse \r\nhttps://github.com/elukoyanov/browserstack-local/blob/master/lib/Local.js#L61\r\nand I see next stdout:\r\n```\r\n{\"state\":\"connected\",\"pid\":323,\"message\":{\"message\":\"Connected\"}}\r\n{\"state\":\"connected\",\"pid\":323,\"message\":{\"message\":\"Connected\"}}\r\nThu Mar 10 2022 15:59:47 GMT+0000 (Coordinated Universal Time) -- Received runtime exception: Error [ERR_IPC_DISCONNECTED]: IPC channel is already disconnected\r\nThu Mar 10 2022 15:59:47 GMT+0000 (Coordinated Universal Time) -- Exiting.\r\n```\r\n\r\nAs I see - there are duplicated JSON and two strings with error.\r\n\r\nIt breaks JSON.parse.\r\n\r\nAs I see, it's more server error, than package. But maybe not\r\n","author":{"url":"https://github.com/elukoyanov","@type":"Person","name":"elukoyanov"},"datePublished":"2022-03-16T13:16:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/127/browserstack-local-nodejs/issues/127"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c420010e-b961-b91e-38e5-5a496eb185d0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8E32:FD0CD:1D27856:28C7DFA:696F621E
html-safe-nonce9b15e93dda3badd92125a3aace4de68968465da22a39afed91e8b079ef69711b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTMyOkZEMENEOjFEMjc4NTY6MjhDN0RGQTo2OTZGNjIxRSIsInZpc2l0b3JfaWQiOiIyMjkwMzI2MDAyODExNzU3MDg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0fceabab50e1985d11ff9c2d5d291088648388722cc24b76e75f6ebf67c28fe9
hovercard-subject-tagissue:1171010791
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/browserstack/browserstack-local-nodejs/127/issue_layout
twitter:imagehttps://opengraph.githubassets.com/92c1d4eb7f22af385b3529bbefe3b034a4aa150b3afc721dfdf86ee71f175b9b/browserstack/browserstack-local-nodejs/issues/127
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/92c1d4eb7f22af385b3529bbefe3b034a4aa150b3afc721dfdf86ee71f175b9b/browserstack/browserstack-local-nodejs/issues/127
og:image:altExpected Behavior browserstack-local starts and works fine Actual Behavior browserstack-local starts and fails with next error SyntaxError: Unexpected token { in JSON at position 66 at JSON.parse (...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameelukoyanov
hostnamegithub.com
expected-hostnamegithub.com
None774d0922d2c4577043d2dab90427344eb4c6ce1d5579acb1dd504cff1a7e46f8
turbo-cache-controlno-preview
go-importgithub.com/browserstack/browserstack-local-nodejs git https://github.com/browserstack/browserstack-local-nodejs.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id51923223
octolytics-dimension-repository_nwobrowserstack/browserstack-local-nodejs
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51923223
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-local-nodejs
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release650acea592f12d1bd8931d44546c209e0b06ed6e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/127#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fissues%2F127
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fissues%2F127
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=browserstack%2Fbrowserstack-local-nodejs
Reloadhttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/127
Reloadhttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/127
Reloadhttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/127
browserstack https://patch-diff.githubusercontent.com/browserstack
browserstack-local-nodejshttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs
Fork 54 https://patch-diff.githubusercontent.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs
Star 73 https://patch-diff.githubusercontent.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs
Code https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs
Issues 26 https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues
Pull requests 21 https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/pulls
Actions https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/actions
Projects 0 https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/security
Please reload this pagehttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/127
Insights https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/pulse
Code https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs
Issues https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues
Pull requests https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/pulls
Actions https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/actions
Projects https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/projects
Security https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/security
Insights https://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/browserstack/browserstack-local-nodejs/issues/127
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/browserstack/browserstack-local-nodejs/issues/127
#136https://github.com/browserstack/browserstack-local-nodejs/pull/136
browserstack-local sometimes breaks due to Incorrect JSON in stdouthttps://patch-diff.githubusercontent.com/browserstack/browserstack-local-nodejs/issues/127#top
#136https://github.com/browserstack/browserstack-local-nodejs/pull/136
https://github.com/elukoyanov
https://github.com/elukoyanov
elukoyanovhttps://github.com/elukoyanov
on Mar 16, 2022https://github.com/browserstack/browserstack-local-nodejs/issues/127#issue-1171010791
https://github.com/elukoyanov/browserstack-local/blob/master/lib/Local.js#L61https://github.com/elukoyanov/browserstack-local/blob/master/lib/Local.js#L61
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.