René's URL Explorer Experiment


Title: Authentication with Environment Variables returning error · Issue #879 · browserstack/browserstack-cypress-cli · GitHub

Open Graph Title: Authentication with Environment Variables returning error · Issue #879 · browserstack/browserstack-cypress-cli

X Title: Authentication with Environment Variables returning error · Issue #879 · browserstack/browserstack-cypress-cli

Description: I am attempting to use Environment Variables, inside of my .env file, to load my BROWSERSTACK_USERNAME & BROWSERSTACK_ACCESS_KEY credentials. If I add my Browserstack credentials into the auth object within the browserstack.json file, I ...

Open Graph Description: I am attempting to use Environment Variables, inside of my .env file, to load my BROWSERSTACK_USERNAME & BROWSERSTACK_ACCESS_KEY credentials. If I add my Browserstack credentials into the auth obje...

X Description: I am attempting to use Environment Variables, inside of my .env file, to load my BROWSERSTACK_USERNAME & BROWSERSTACK_ACCESS_KEY credentials. If I add my Browserstack credentials into the auth ...

Opengraph URL: https://github.com/browserstack/browserstack-cypress-cli/issues/879

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Authentication with Environment Variables returning error","articleBody":"I am attempting to use Environment Variables, inside of my .env file, to load my BROWSERSTACK_USERNAME & BROWSERSTACK_ACCESS_KEY credentials. \r\n\r\nIf I add my Browserstack credentials into the auth object within the browserstack.json file, I have no issues authenticating and running my Cypress tests. But if I move these values in my BROWSERSTACK_USERNAME & BROWSERSTACK_ACCESS_KEY variables inside of my .env file and run the same command, I am getting this error: \r\n\r\n```\r\n{\r\n  message: \"Cannot read properties of undefined (reading 'username')\",\r\n  stack: \"TypeError: Cannot read properties of undefined (reading 'username')\\n\" +\r\n    '    at /Users/billpond/code/comparecredit/packages/cc-www/node_modules/browserstack-cypress-cli/bin/helpers/getInitialDetails.js:12:33\\n' +\r\n    '    at new Promise (\u003canonymous>)\\n' +\r\n    '    at exports.getInitialDetails (/Users/billpond/code/comparecredit/packages/cc-www/node_modules/browserstack-cypress-cli/bin/helpers/getInitialDetails.js:8:10)\\n' +\r\n    '    at /Users/billpond/code/comparecredit/packages/cc-www/node_modules/browserstack-cypress-cli/bin/commands/runs.js:87:86\\n' +\r\n    '    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)'\r\n}\r\n```\r\n\r\nWhen debugging, I have logged out my \"process.env\" value in the setUsername function in the util.js file. When I did this, I do not see any of my .env values within that process. It seems like the only values included were the typical node values inside of the process: https://pastebin.com/syj8rRAN\r\n\r\nI have tried both node versions v18.18.2 and v20.17.0 and ran into the same issue. To run this code, I have been running a command in my package.json that is set to `\"e2e:browserstack\": \"browserstack-cypress run\"`\r\n\r\nI am trying to follow the documentation mentioned here:  https://www.browserstack.com/docs/automate/cypress/authentication\r\n\r\nThank you so much in advance! \r\n","author":{"url":"https://github.com/dudeOFprosper","@type":"Person","name":"dudeOFprosper"},"datePublished":"2024-10-01T19:07:42Z","url":"https://github.com/browserstack/browserstack-cypress-cli/issues/879"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f55a044a-f31b-21cd-2425-326b6a961ea3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9C2C:3488ED:C46423:1129C05:6B0439AF
html-safe-noncef05c4d01e5e45696c256921624c93f9695d2a6d4d234cdfbf978fce9ccdb9dd0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzJDOjM0ODhFRDpDNDY0MjM6MTEyOUMwNTo2QjA0MzlBRiIsInZpc2l0b3JfaWQiOiI2NjEwMzY1NTUyNjgwNzc4MTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfe4cbee6e6cf53647fef9d591878fd4b1d33b7db7a6b6b35ec778ca4085b4938
hovercard-subject-tagissue:2559989436
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-cypress-cli/879/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7f11dc4c95f42844f7d9b3852b7f62487e52c0d900b3eb8a43809ffa52239b45/browserstack/browserstack-cypress-cli/issues/879
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7f11dc4c95f42844f7d9b3852b7f62487e52c0d900b3eb8a43809ffa52239b45/browserstack/browserstack-cypress-cli/issues/879
og:image:altI am attempting to use Environment Variables, inside of my .env file, to load my BROWSERSTACK_USERNAME & BROWSERSTACK_ACCESS_KEY credentials. If I add my Browserstack credentials into the auth obje...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedudeOFprosper
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
go-importgithub.com/browserstack/browserstack-cypress-cli git https://github.com/browserstack/browserstack-cypress-cli.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id242935045
octolytics-dimension-repository_nwobrowserstack/browserstack-cypress-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id242935045
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-cypress-cli
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
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/browserstack/browserstack-cypress-cli/issues/879#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fissues%2F879
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fissues%2F879
Sign uphttps://github.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-cypress-cli
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/issues/879
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/issues/879
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/issues/879
browserstackhttps://github.com/browserstack
browserstack-cypress-clihttps://github.com/browserstack/browserstack-cypress-cli
Codehttps://github.com/browserstack/browserstack-cypress-cli
Issues28 (28)https://github.com/browserstack/browserstack-cypress-cli/issues
Pull requests47 (47)https://github.com/browserstack/browserstack-cypress-cli/pulls
Actionshttps://github.com/browserstack/browserstack-cypress-cli/actions
Projectshttps://github.com/browserstack/browserstack-cypress-cli/projects
Security and quality1 (1)https://github.com/browserstack/browserstack-cypress-cli/security
Insightshttps://github.com/browserstack/browserstack-cypress-cli/insights
https://github.com/browserstack/browserstack-cypress-cli
New issuehttps://github.com/login?return_to=https://github.com/browserstack/browserstack-cypress-cli/issues/879
New issuehttps://github.com/login?return_to=https://github.com/browserstack/browserstack-cypress-cli/issues/879
Authentication with Environment Variables returning errorhttps://github.com/browserstack/browserstack-cypress-cli/issues/879#top
https://github.com/dudeOFprosper
dudeOFprosperhttps://github.com/dudeOFprosper
on Oct 1, 2024https://github.com/browserstack/browserstack-cypress-cli/issues/879#issue-2559989436
https://pastebin.com/syj8rRANhttps://pastebin.com/syj8rRAN
https://www.browserstack.com/docs/automate/cypress/authenticationhttps://www.browserstack.com/docs/automate/cypress/authentication
Sign up for freehttps://github.com/signup?return_to=https://github.com/browserstack/browserstack-cypress-cli/issues/879
Sign in to commenthttps://github.com/login?return_to=https://github.com/browserstack/browserstack-cypress-cli/issues/879
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.