René's URL Explorer Experiment


Title: cy.intercept() TypeError: mime.getType is not a function · Issue #290 · browserstack/browserstack-cypress-cli · GitHub

Open Graph Title: cy.intercept() TypeError: mime.getType is not a function · Issue #290 · browserstack/browserstack-cypress-cli

X Title: cy.intercept() TypeError: mime.getType is not a function · Issue #290 · browserstack/browserstack-cypress-cli

Description: Hi team, we upgraded from Cypress 8.7.0 to Cypress v9.4.1 as this is the latest supported in Browserstack according to the docs https://www.browserstack.com/docs/automate/cypress/limitations One of our tests uses cy.intercept and after t...

Open Graph Description: Hi team, we upgraded from Cypress 8.7.0 to Cypress v9.4.1 as this is the latest supported in Browserstack according to the docs https://www.browserstack.com/docs/automate/cypress/limitations One of...

X Description: Hi team, we upgraded from Cypress 8.7.0 to Cypress v9.4.1 as this is the latest supported in Browserstack according to the docs https://www.browserstack.com/docs/automate/cypress/limitations One of...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cy.intercept() TypeError: mime.getType is not a function","articleBody":"Hi team, we upgraded from Cypress 8.7.0 to Cypress v9.4.1 as this is the latest supported in Browserstack according to the docs https://www.browserstack.com/docs/automate/cypress/limitations\r\n\r\nOne of our tests uses [`cy.intercept`](https://docs.cypress.io/api/commands/intercept#Syntax) and after the upgrade we noticed the following error in that test:\r\n\r\n```\r\nTypeError: An error was thrown while processing a network event: mime.getType is not a function\r\n  TypeError: mime.getType is not a function\r\n      at ret (/root/app/packages/server/lib/controllers/xhrs.js:120:19)\r\n      at parseContentType (/root/app/packages/server/lib/controllers/xhrs.js:124:14)\r\n      at /root/app/packages/net-stubbing/lib/server/util.js:106:107\r\n      at Generator.next (\u003canonymous>:null:null)\r\n      at fulfilled (/root/app/packages/net-stubbing/lib/server/util.js:5:58)\r\n```\r\n\r\nAfter debugging, I found out that the problem might be the version of the `mime` package, as it is used to parse the response mime type. Version `2.4.4` introduced breaking changes (like renaming `lookup` in favor of `getType`), but what is weird is that this version upgrade (from 1.6 to 2.4.4) was made in [Cypress v4.3.0](https://docs.cypress.io/guides/references/changelog#4-3-0) so...not sure what's going on.\r\n\r\nAny help will be much appreciated. Thank you in advance.\r\n\r\n","author":{"url":"https://github.com/vmcruz","@type":"Person","name":"vmcruz"},"datePublished":"2022-03-31T03:04:36Z","url":"https://github.com/browserstack/browserstack-cypress-cli/issues/290"}

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:191e86d6-566e-5a7e-0619-780dc2e2e3a7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8042:29C09E:D717FA:12E33B8:6B04401A
html-safe-noncef4172fe67631cdbca5576cdf383dc857011a774f70afbcec3e38a02f5c798cc0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDQyOjI5QzA5RTpENzE3RkE6MTJFMzNCODo2QjA0NDAxQSIsInZpc2l0b3JfaWQiOiI3Nzg1MDU0ODMyMDEyMDUwNDU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9c9350080eaca2903ed14318ff5378e34ac249a6d30a4ff1e9b84a9663b816a6
hovercard-subject-tagissue:1187429563
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/290/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ed2899c31acebe3cac8c731e208b2bef4dda662ab10165667480164786429587/browserstack/browserstack-cypress-cli/issues/290
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ed2899c31acebe3cac8c731e208b2bef4dda662ab10165667480164786429587/browserstack/browserstack-cypress-cli/issues/290
og:image:altHi team, we upgraded from Cypress 8.7.0 to Cypress v9.4.1 as this is the latest supported in Browserstack according to the docs https://www.browserstack.com/docs/automate/cypress/limitations One of...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevmcruz
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-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/browserstack/browserstack-cypress-cli/issues/290#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fissues%2F290
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%2F290
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/290
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/issues/290
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/issues/290
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/290
New issuehttps://github.com/login?return_to=https://github.com/browserstack/browserstack-cypress-cli/issues/290
cy.intercept() TypeError: mime.getType is not a functionhttps://github.com/browserstack/browserstack-cypress-cli/issues/290#top
https://github.com/vmcruz
vmcruzhttps://github.com/vmcruz
on Mar 31, 2022https://github.com/browserstack/browserstack-cypress-cli/issues/290#issue-1187429563
https://www.browserstack.com/docs/automate/cypress/limitationshttps://www.browserstack.com/docs/automate/cypress/limitations
cy.intercepthttps://docs.cypress.io/api/commands/intercept#Syntax
Cypress v4.3.0https://docs.cypress.io/guides/references/changelog#4-3-0
https://github.com/randalvance
randalvancehttps://github.com/randalvance
on May 17, 2022https://github.com/browserstack/browserstack-cypress-cli/issues/290#issuecomment-1128797120
https://github.com/bhumikababbar
bhumikababbarhttps://github.com/bhumikababbar
on Jun 9, 2022https://github.com/browserstack/browserstack-cypress-cli/issues/290#issuecomment-1150656533
Sign up for freehttps://github.com/signup?return_to=https://github.com/browserstack/browserstack-cypress-cli/issues/290
Sign in to commenthttps://github.com/login?return_to=https://github.com/browserstack/browserstack-cypress-cli/issues/290
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.