Title: Protocol "https:" not supported. Expected "http:" · Issue #103 · Azure/AppConfiguration-JavaScriptProvider · GitHub
Open Graph Title: Protocol "https:" not supported. Expected "http:" · Issue #103 · Azure/AppConfiguration-JavaScriptProvider
X Title: Protocol "https:" not supported. Expected "http:" · Issue #103 · Azure/AppConfiguration-JavaScriptProvider
Description: I’ve added MSW (v2.4.3) into our project to mock the API requests, but after doing so, I encountered the following error: [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:" (see the stack trace below). The full sta...
Open Graph Description: I’ve added MSW (v2.4.3) into our project to mock the API requests, but after doing so, I encountered the following error: [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:" (...
X Description: I’ve added MSW (v2.4.3) into our project to mock the API requests, but after doing so, I encountered the following error: [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected...
Opengraph URL: https://github.com/Azure/AppConfiguration-JavaScriptProvider/issues/103
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Protocol \"https:\" not supported. Expected \"http:\"","articleBody":"I’ve added MSW (v2.4.3) into our project to mock the API requests, but after doing so, I encountered the following error:\r\n\r\n[ERR_INVALID_PROTOCOL]: Protocol \"https:\" not supported. Expected \"http:\" (see the stack trace below). \r\n\r\nThe full stack trace is attached below for reference. I’m currently using Next.js (v14.2.12) and msw (v2.4.3), and the error seems to occur when handling https requests within a Node.js environment.\r\n\r\nYour help would be greatly appreciated. Thank you in advance for your support.\r\n\r\n`@example/web:dev: ⨯ TypeError [ERR_INVALID_PROTOCOL]: Protocol \"https:\" not supported. Expected \"http:\"\r\n@example/web:dev: at new ClientRequest (node:_http_client:183:11)\r\n@example/web:dev: at new _NodeClientRequest (webpack-internal:///(instrument)/../../packages/mock/node_modules/@mswjs/interceptors/lib/node/chunk-CVV3L375.mjs:22\r\n9:5)\r\n@example/web:dev: at Object.interceptorsHttpRequest [as request] (webpack-internal:///(instrument)/../../packages/mock/node_modules/@mswjs/interceptors/lib/node/\r\nchunk-CVV3L375.mjs:847:12)\r\n@example/web:dev: at eval (webpack-internal:///(rsc)/../../node_modules/@azure/core-rest-pipeline/dist/esm/nodeHttpClient.js:199:145)\r\n@example/web:dev: at new Promise (\u003canonymous\u003e)\r\n@example/web:dev: at NodeHttpClient.makeRequest (webpack-internal:///(rsc)/../../node_modules/@azure/core-rest-pipeline/dist/esm/nodeHttpClient.js:198:16)\r\n@example/web:dev: at NodeHttpClient.sendRequest (webpack-internal:///(rsc)/../../node_modules/@azure/core-rest-pipeline/dist/esm/nodeHttpClient.js:120:36)\r\n@example/web:dev: at eval (webpack-internal:///(rsc)/../../node_modules/@azure/core-rest-pipeline/dist/esm/pipeline.js:57:32)\r\n@example/web:dev: at Object.sendRequest (webpack-internal:///(rsc)/../../node_modules/@azure/core-rest-pipeline/dist/esm/policies/logPolicy.js:31:24)\r\n@example/web:dev: at eval (webpack-internal:///(rsc)/../../node_modules/@azure/core-rest-pipeline/dist/esm/pipeline.js:55:31)\r\n@example/web:dev: at Object.sendRequest (webpack-internal:///(rsc)/../../node_modules/@azure/app-configuration/dist-esm/src/appConfigCredential.js:36:20)\r\n@example/web:dev: at async Object.sendRequest (webpack-internal:///(rsc)/../../node_modules/@azure/app-configuration/dist-esm/src/internal/synctokenpolicy.js:32:\r\n30)\r\n@example/web:dev: at async Object.sendRequest (webpack-internal:///(rsc)/../../node_modules/@azure/core-rest-pipeline/dist/esm/policies/redirectPolicy.js:27:30)\r\n@example/web:dev: at async Object.sendRequest (webpack-internal:///(rsc)/../../node_modules/@azure/core-rest-pipeline/dist/esm/policies/retryPolicy.js:39:32)\r\n@example/web:dev: at async Object.sendRequest (webpack-internal:///(rsc)/../../node_modules/@azure/core-client/dist/esm/deserializationPolicy.js:41:30)\r\n@example/web:dev: at async AppConfiguration.sendOperationRequest (webpack-internal:///(rsc)/../../node_modules/@azure/core-client/dist/esm/serviceClient.js:119:3\r\n3)\r\n@example/web:dev: at async AppConfiguration.sendOperationRequest (webpack-internal:///(rsc)/../../node_modules/@azure/core-http-compat/dist/esm/extendedClient.js\r\n:50:24)\r\n@example/web:dev: at async eval (webpack-internal:///(rsc)/../../node_modules/@azure/app-configuration/dist-esm/src/appConfigurationClient.js:282:30)\r\n@example/web:dev: at async Object.withSpan (webpack-internal:///(rsc)/../../node_modules/@azure/core-tracing/dist/esm/tracingClient.js:39:28)\r\n@example/web:dev: at async Object.getPage (webpack-internal:///(rsc)/../../node_modules/@azure/app-configuration/dist-esm/src/appConfigurationClient.js:187:38) {\r\n@example/web:dev: digest: '3030512967',\r\n@example/web:dev: page: '/'\r\n@example/web:dev: }`","author":{"url":"https://github.com/richard-thai","@type":"Person","name":"richard-thai"},"datePublished":"2024-09-25T05:06:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/103/AppConfiguration-JavaScriptProvider/issues/103"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6d41e215-b281-4e83-1107-2ff92bbc4263 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB1C:3C133F:4F776C:674C54:698D4FAC |
| html-safe-nonce | 918df2c708c46cae7c8a97794b7cfabb28651fe4ef471de22e5e592337bf8e68 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjFDOjNDMTMzRjo0Rjc3NkM6Njc0QzU0OjY5OEQ0RkFDIiwidmlzaXRvcl9pZCI6IjI5MjM0NDAyNTEzNzk0NzAyNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2a143083f50d0afa503ddf185d32125502fd7efa80d1ead4ebf8a667d5663af3 |
| hovercard-subject-tag | issue:2546940174 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Azure/AppConfiguration-JavaScriptProvider/103/issue_layout |
| twitter:image | https://opengraph.githubassets.com/58645573b2dabf700eceadac5470a0cab26f6b33a357a16e51bdc9a69e4f2a97/Azure/AppConfiguration-JavaScriptProvider/issues/103 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/58645573b2dabf700eceadac5470a0cab26f6b33a357a16e51bdc9a69e4f2a97/Azure/AppConfiguration-JavaScriptProvider/issues/103 |
| og:image:alt | I’ve added MSW (v2.4.3) into our project to mock the API requests, but after doing so, I encountered the following error: [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:" (... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | richard-thai |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/Azure/AppConfiguration-JavaScriptProvider git https://github.com/Azure/AppConfiguration-JavaScriptProvider.git |
| octolytics-dimension-user_id | 6844498 |
| octolytics-dimension-user_login | Azure |
| octolytics-dimension-repository_id | 688057518 |
| octolytics-dimension-repository_nwo | Azure/AppConfiguration-JavaScriptProvider |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 688057518 |
| octolytics-dimension-repository_network_root_nwo | Azure/AppConfiguration-JavaScriptProvider |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a95a17cc440c14d4fcddc0641bc1136fa8d908f0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width