Title: JsTracer and algorithms.git problems, when offline · Issue #1 · algorithm-visualizer/server · GitHub
Open Graph Title: JsTracer and algorithms.git problems, when offline · Issue #1 · algorithm-visualizer/server
X Title: JsTracer and algorithms.git problems, when offline · Issue #1 · algorithm-visualizer/server
Description: I would like to run the platform completely locally, but it seems that the server component needs an internet connection to access the algorithms in the algorithms repository and the tracer api. I am getting the following messages in my ...
Open Graph Description: I would like to run the platform completely locally, but it seems that the server component needs an internet connection to access the algorithms in the algorithms repository and the tracer api. I ...
X Description: I would like to run the platform completely locally, but it seems that the server component needs an internet connection to access the algorithms in the algorithms repository and the tracer api. I ...
Opengraph URL: https://github.com/algorithm-visualizer/server/issues/1
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JsTracer and algorithms.git problems, when offline","articleBody":"I would like to run the platform completely locally, but it seems that the server component needs an internet connection to access the algorithms in the algorithms repository and the tracer api.\r\n\r\nI am getting the following messages in my terminal\r\n`npm run watch\r\n\r\n> @algorithm-visualizer/server@2.0.0 watch /home/foobar/server\r\n> NODE_ENV=development NODE_PATH=src ts-node-dev --respawn --ignore-watch node_modules --no-notify src\r\n\r\nIgnore watch: [ 'node_modules' ]\r\nUsing ts-node version 8.2.0, typescript version 3.5.1\r\nhttp: listening on port 8080\r\n(node:19343) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND api.github.com\r\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26)\r\n(node:19343) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag \\`--unhandled-rejections=strict\\` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)\r\n(node:19343) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\r\nError: getaddrinfo ENOTFOUND api.github.com\r\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26) {\r\n errno: -3008,\r\n code: 'ENOTFOUND',\r\n syscall: 'getaddrinfo',\r\n hostname: 'api.github.com',\r\n config: {\r\n url: 'https://api.github.com/repos/algorithm-visualizer/tracers.cpp/releases/latest',\r\n method: 'get',\r\n headers: {\r\n Accept: 'application/json, text/plain, */*',\r\n 'User-Agent': 'axios/0.19.0'\r\n },\r\n transformRequest: [ [Function: transformRequest] ],\r\n transformResponse: [ [Function: transformResponse] ],\r\n timeout: 0,\r\n adapter: [Function: httpAdapter],\r\n xsrfCookieName: 'XSRF-TOKEN',\r\n xsrfHeaderName: 'X-XSRF-TOKEN',\r\n maxContentLength: -1,\r\n validateStatus: [Function: validateStatus],\r\n params: { client_id: 'dummy', client_secret: 'dummy' },\r\n data: undefined\r\n },\r\n request: \u003cref *1> Writable {\r\n _writableState: WritableState {\r\n objectMode: false,\r\n highWaterMark: 16384,\r\n finalCalled: false,\r\n needDrain: false,\r\n ending: false,\r\n ended: false,\r\n finished: false,\r\n destroyed: false,\r\n decodeStrings: true,\r\n defaultEncoding: 'utf8',\r\n length: 0,\r\n writing: false,\r\n corked: 0,\r\n sync: true,\r\n bufferProcessing: false,\r\n onwrite: [Function: bound onwrite],\r\n writecb: null,\r\n writelen: 0,\r\n afterWriteTickInfo: null,\r\n bufferedRequest: null,\r\n lastBufferedRequest: null,\r\n pendingcb: 0,\r\n prefinished: false,\r\n errorEmitted: false,\r\n emitClose: true,\r\n autoDestroy: false,\r\n errored: false,\r\n bufferedRequestCount: 0,\r\n corkedRequestsFree: [Object]\r\n },\r\n writable: true,\r\n _events: [Object: null prototype] {\r\n response: [Function: handleResponse],\r\n error: [Function: handleRequestError]\r\n },\r\n _eventsCount: 2,\r\n _maxListeners: undefined,\r\n _options: {\r\n protocol: 'https:',\r\n maxRedirects: 21,\r\n maxBodyLength: 10485760,\r\n path: '/repos/algorithm-visualizer/tracers.cpp/releases/latest?client_id=dummy&client_secret=dummy',\r\n method: 'GET',\r\n headers: [Object],\r\n agent: undefined,\r\n auth: undefined,\r\n hostname: 'api.github.com',\r\n port: null,\r\n nativeProtocols: [Object],\r\n pathname: '/repos/algorithm-visualizer/tracers.cpp/releases/latest',\r\n search: '?client_id=dummy&client_secret=dummy'\r\n },\r\n _redirectCount: 0,\r\n _redirects: [],\r\n _requestBodyLength: 0,\r\n _requestBodyBuffers: [],\r\n _onNativeResponse: [Function (anonymous)],\r\n _currentRequest: ClientRequest {\r\n _events: [Object: null prototype],\r\n _eventsCount: 6,\r\n _maxListeners: undefined,\r\n outputData: [],\r\n outputSize: 0,\r\n writable: true,\r\n _last: true,\r\n chunkedEncoding: false,\r\n shouldKeepAlive: false,\r\n useChunkedEncodingByDefault: false,\r\n sendDate: false,\r\n _removedConnection: false,\r\n _removedContLen: false,\r\n _removedTE: false,\r\n _contentLength: 0,\r\n _hasBody: true,\r\n _trailer: '',\r\n finished: true,\r\n _headerSent: true,\r\n socket: [TLSSocket],\r\n _header: 'GET /repos/algorithm-visualizer/tracers.cpp/releases/latest?client_id=dummy&client_secret=dummy HTTP/1.1\\r\\n' +\r\n 'Accept: application/json, text/plain, */*\\r\\n' +\r\n 'User-Agent: axios/0.19.0\\r\\n' +\r\n 'Host: api.github.com\\r\\n' +\r\n 'Connection: close\\r\\n' +\r\n '\\r\\n',\r\n _onPendingData: [Function: noopPendingOutput],\r\n agent: [Agent],\r\n socketPath: undefined,\r\n method: 'GET',\r\n maxHeaderSize: undefined,\r\n path: '/repos/algorithm-visualizer/tracers.cpp/releases/latest?client_id=dummy&client_secret=dummy',\r\n _ended: false,\r\n res: null,\r\n aborted: false,\r\n timeoutCb: null,\r\n upgradeOrConnect: false,\r\n parser: null,\r\n maxHeadersCount: null,\r\n reusedSocket: false,\r\n _redirectable: [Circular *1],\r\n [Symbol(kCapture)]: false,\r\n [Symbol(kNeedDrain)]: false,\r\n [Symbol(corked)]: 0,\r\n [Symbol(kOutHeaders)]: [Object: null prototype]\r\n },\r\n _currentUrl: 'https://api.github.com/repos/algorithm-visualizer/tracers.cpp/releases/latest?client_id=dummy&client_secret=dummy',\r\n [Symbol(kCapture)]: false\r\n },\r\n response: undefined,\r\n isAxiosError: true,\r\n toJSON: [Function (anonymous)]\r\n}\r\nError: getaddrinfo ENOTFOUND api.github.com\r\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26) {\r\n errno: -3008,\r\n code: 'ENOTFOUND',\r\n syscall: 'getaddrinfo',\r\n hostname: 'api.github.com',\r\n config: {\r\n url: 'https://api.github.com/repos/algorithm-visualizer/tracers.java/releases/latest',\r\n method: 'get',\r\n headers: {\r\n Accept: 'application/json, text/plain, */*',\r\n 'User-Agent': 'axios/0.19.0'\r\n },\r\n transformRequest: [ [Function: transformRequest] ],\r\n transformResponse: [ [Function: transformResponse] ],\r\n timeout: 0,\r\n adapter: [Function: httpAdapter],\r\n xsrfCookieName: 'XSRF-TOKEN',\r\n xsrfHeaderName: 'X-XSRF-TOKEN',\r\n maxContentLength: -1,\r\n validateStatus: [Function: validateStatus],\r\n params: { client_id: 'dummy', client_secret: 'dummy' },\r\n data: undefined\r\n },\r\n request: \u003cref *1> Writable {\r\n _writableState: WritableState {\r\n objectMode: false,\r\n highWaterMark: 16384,\r\n finalCalled: false,\r\n needDrain: false,\r\n ending: false,\r\n ended: false,\r\n finished: false,\r\n destroyed: false,\r\n decodeStrings: true,\r\n defaultEncoding: 'utf8',\r\n length: 0,\r\n writing: false,\r\n corked: 0,\r\n sync: true,\r\n bufferProcessing: false,\r\n onwrite: [Function: bound onwrite],\r\n writecb: null,\r\n writelen: 0,\r\n afterWriteTickInfo: null,\r\n bufferedRequest: null,\r\n lastBufferedRequest: null,\r\n pendingcb: 0,\r\n prefinished: false,\r\n errorEmitted: false,\r\n emitClose: true,\r\n autoDestroy: false,\r\n errored: false,\r\n bufferedRequestCount: 0,\r\n corkedRequestsFree: [Object]\r\n },\r\n writable: true,\r\n _events: [Object: null prototype] {\r\n response: [Function: handleResponse],\r\n error: [Function: handleRequestError]\r\n },\r\n _eventsCount: 2,\r\n _maxListeners: undefined,\r\n _options: {\r\n protocol: 'https:',\r\n maxRedirects: 21,\r\n maxBodyLength: 10485760,\r\n path: '/repos/algorithm-visualizer/tracers.java/releases/latest?client_id=dummy&client_secret=dummy',\r\n method: 'GET',\r\n headers: [Object],\r\n agent: undefined,\r\n auth: undefined,\r\n hostname: 'api.github.com',\r\n port: null,\r\n nativeProtocols: [Object],\r\n pathname: '/repos/algorithm-visualizer/tracers.java/releases/latest',\r\n search: '?client_id=dummy&client_secret=dummy'\r\n },\r\n _redirectCount: 0,\r\n _redirects: [],\r\n _requestBodyLength: 0,\r\n _requestBodyBuffers: [],\r\n _onNativeResponse: [Function (anonymous)],\r\n _currentRequest: ClientRequest {\r\n _events: [Object: null prototype],\r\n _eventsCount: 6,\r\n _maxListeners: undefined,\r\n outputData: [],\r\n outputSize: 0,\r\n writable: true,\r\n _last: true,\r\n chunkedEncoding: false,\r\n shouldKeepAlive: false,\r\n useChunkedEncodingByDefault: false,\r\n sendDate: false,\r\n _removedConnection: false,\r\n _removedContLen: false,\r\n _removedTE: false,\r\n _contentLength: 0,\r\n _hasBody: true,\r\n _trailer: '',\r\n finished: true,\r\n _headerSent: true,\r\n socket: [TLSSocket],\r\n _header: 'GET /repos/algorithm-visualizer/tracers.java/releases/latest?client_id=dummy&client_secret=dummy HTTP/1.1\\r\\n' +\r\n 'Accept: application/json, text/plain, */*\\r\\n' +\r\n 'User-Agent: axios/0.19.0\\r\\n' +\r\n 'Host: api.github.com\\r\\n' +\r\n 'Connection: close\\r\\n' +\r\n '\\r\\n',\r\n _onPendingData: [Function: noopPendingOutput],\r\n agent: [Agent],\r\n socketPath: undefined,\r\n method: 'GET',\r\n maxHeaderSize: undefined,\r\n path: '/repos/algorithm-visualizer/tracers.java/releases/latest?client_id=dummy&client_secret=dummy',\r\n _ended: false,\r\n res: null,\r\n aborted: false,\r\n timeoutCb: null,\r\n upgradeOrConnect: false,\r\n parser: null,\r\n maxHeadersCount: null,\r\n reusedSocket: false,\r\n _redirectable: [Circular *1],\r\n [Symbol(kCapture)]: false,\r\n [Symbol(kNeedDrain)]: false,\r\n [Symbol(corked)]: 0,\r\n [Symbol(kOutHeaders)]: [Object: null prototype]\r\n },\r\n _currentUrl: 'https://api.github.com/repos/algorithm-visualizer/tracers.java/releases/latest?client_id=dummy&client_secret=dummy',\r\n [Symbol(kCapture)]: false\r\n },\r\n response: undefined,\r\n isAxiosError: true,\r\n toJSON: [Function (anonymous)]\r\n}\r\nError: getaddrinfo ENOTFOUND api.github.com\r\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26) {\r\n errno: -3008,\r\n code: 'ENOTFOUND',\r\n syscall: 'getaddrinfo',\r\n hostname: 'api.github.com',\r\n config: {\r\n url: 'https://api.github.com/repos/algorithm-visualizer/tracers.js/releases/latest',\r\n method: 'get',\r\n headers: {\r\n Accept: 'application/json, text/plain, */*',\r\n 'User-Agent': 'axios/0.19.0'\r\n },\r\n transformRequest: [ [Function: transformRequest] ],\r\n transformResponse: [ [Function: transformResponse] ],\r\n timeout: 0,\r\n adapter: [Function: httpAdapter],\r\n xsrfCookieName: 'XSRF-TOKEN',\r\n xsrfHeaderName: 'X-XSRF-TOKEN',\r\n maxContentLength: -1,\r\n validateStatus: [Function: validateStatus],\r\n params: { client_id: 'dummy', client_secret: 'dummy' },\r\n data: undefined\r\n },\r\n request: \u003cref *1> Writable {\r\n _writableState: WritableState {\r\n objectMode: false,\r\n highWaterMark: 16384,\r\n finalCalled: false,\r\n needDrain: false,\r\n ending: false,\r\n ended: false,\r\n finished: false,\r\n destroyed: false,\r\n decodeStrings: true,\r\n defaultEncoding: 'utf8',\r\n length: 0,\r\n writing: false,\r\n corked: 0,\r\n sync: true,\r\n bufferProcessing: false,\r\n onwrite: [Function: bound onwrite],\r\n writecb: null,\r\n writelen: 0,\r\n afterWriteTickInfo: null,\r\n bufferedRequest: null,\r\n lastBufferedRequest: null,\r\n pendingcb: 0,\r\n prefinished: false,\r\n errorEmitted: false,\r\n emitClose: true,\r\n autoDestroy: false,\r\n errored: false,\r\n bufferedRequestCount: 0,\r\n corkedRequestsFree: [Object]\r\n },\r\n writable: true,\r\n _events: [Object: null prototype] {\r\n response: [Function: handleResponse],\r\n error: [Function: handleRequestError]\r\n },\r\n _eventsCount: 2,\r\n _maxListeners: undefined,\r\n _options: {\r\n protocol: 'https:',\r\n maxRedirects: 21,\r\n maxBodyLength: 10485760,\r\n path: '/repos/algorithm-visualizer/tracers.js/releases/latest?client_id=dummy&client_secret=dummy',\r\n method: 'GET',\r\n headers: [Object],\r\n agent: undefined,\r\n auth: undefined,\r\n hostname: 'api.github.com',\r\n port: null,\r\n nativeProtocols: [Object],\r\n pathname: '/repos/algorithm-visualizer/tracers.js/releases/latest',\r\n search: '?client_id=dummy&client_secret=dummy'\r\n },\r\n _redirectCount: 0,\r\n _redirects: [],\r\n _requestBodyLength: 0,\r\n _requestBodyBuffers: [],\r\n _onNativeResponse: [Function (anonymous)],\r\n _currentRequest: ClientRequest {\r\n _events: [Object: null prototype],\r\n _eventsCount: 6,\r\n _maxListeners: undefined,\r\n outputData: [],\r\n outputSize: 0,\r\n writable: true,\r\n _last: true,\r\n chunkedEncoding: false,\r\n shouldKeepAlive: false,\r\n useChunkedEncodingByDefault: false,\r\n sendDate: false,\r\n _removedConnection: false,\r\n _removedContLen: false,\r\n _removedTE: false,\r\n _contentLength: 0,\r\n _hasBody: true,\r\n _trailer: '',\r\n finished: true,\r\n _headerSent: true,\r\n socket: [TLSSocket],\r\n _header: 'GET /repos/algorithm-visualizer/tracers.js/releases/latest?client_id=dummy&client_secret=dummy HTTP/1.1\\r\\n' +\r\n 'Accept: application/json, text/plain, */*\\r\\n' +\r\n 'User-Agent: axios/0.19.0\\r\\n' +\r\n 'Host: api.github.com\\r\\n' +\r\n 'Connection: close\\r\\n' +\r\n '\\r\\n',\r\n _onPendingData: [Function: noopPendingOutput],\r\n agent: [Agent],\r\n socketPath: undefined,\r\n method: 'GET',\r\n maxHeaderSize: undefined,\r\n path: '/repos/algorithm-visualizer/tracers.js/releases/latest?client_id=dummy&client_secret=dummy',\r\n _ended: false,\r\n res: null,\r\n aborted: false,\r\n timeoutCb: null,\r\n upgradeOrConnect: false,\r\n parser: null,\r\n maxHeadersCount: null,\r\n reusedSocket: false,\r\n _redirectable: [Circular *1],\r\n [Symbol(kCapture)]: false,\r\n [Symbol(kNeedDrain)]: false,\r\n [Symbol(corked)]: 0,\r\n [Symbol(kOutHeaders)]: [Object: null prototype]\r\n },\r\n _currentUrl: 'https://api.github.com/repos/algorithm-visualizer/tracers.js/releases/latest?client_id=dummy&client_secret=dummy',\r\n [Symbol(kCapture)]: false\r\n },\r\n response: undefined,\r\n isAxiosError: true,\r\n toJSON: [Function (anonymous)]\r\n}\r\nfatal: unable to access 'https://github.com/algorithm-visualizer/algorithms.git/': Could not resolve host: github.com\r\nError: fatal: unable to access 'https://github.com/algorithm-visualizer/algorithms.git/': Could not resolve host: github.com\r\n\r\n at /home/foobar/server/src/utils/misc.ts:57:45\r\n at ChildProcess.exithandler (child_process.js:309:5)\r\n at ChildProcess.emit (events.js:305:20)\r\n at ChildProcess.EventEmitter.emit (domain.js:483:12)\r\n at maybeClose (internal/child_process.js:1028:16)\r\n at Socket.\u003canonymous> (internal/child_process.js:443:11)\r\n at Socket.emit (events.js:305:20)\r\n at Socket.EventEmitter.emit (domain.js:483:12)\r\n at Pipe.\u003canonymous> (net.js:667:12)\r\n`\r\nWhich occurs after starting the server\r\n\r\n`GET /api/algorithms 304 3.757 ms - -\r\nGET /api/algorithms/greedy/dijkstras-shortest-path 304 0.848 ms - -\r\nGET /api/tracers/js/worker 304 1.597 ms - -\r\nError: JsTracer has not been built yet.\r\n at /home/foobar/server/src/tracers/js/JsTracer.ts:21:32\r\n at Layer.handle [as handle_request] (/home/foobar/server/node_modules/express/lib/router/layer.js:95:5)\r\n at next (/home/foobar/server/node_modules/express/lib/router/route.js:137:13)\r\n at Route.dispatch (/home/foobar/server/node_modules/express/lib/router/route.js:112:3)\r\n at Layer.handle [as handle_request] (/home/foobar/server/node_modules/express/lib/router/layer.js:95:5)\r\n at /home/foobar/server/node_modules/express/lib/router/index.js:281:22\r\n at Function.process_params (/home/foobar/server/node_modules/express/lib/router/index.js:335:12)\r\n at next (/home/foobar/server/node_modules/express/lib/router/index.js:275:10)\r\n at Function.handle (/home/foobar/server/node_modules/express/lib/router/index.js:174:3)\r\n at router (/home/foobar/server/node_modules/express/lib/router/index.js:47:12)\r\nGET /api/tracers/js 500 4.074 ms - 82`\r\n\r\nWhich occurs after trying to run an algorithm.","author":{"url":"https://github.com/FullMetalPancake","@type":"Person","name":"FullMetalPancake"},"datePublished":"2020-01-12T11:47:41Z","url":"https://github.com/algorithm-visualizer/server/issues/1"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:87095fb6-cb9f-6b08-ded4-f57f8e939321 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB54:23A27B:808CC:B3F52:6AFC7219 |
| html-safe-nonce | 5084d9b979bba05711b2740f3efbd6462cfede649f3d7c8554b082632fed94e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjU0OjIzQTI3Qjo4MDhDQzpCM0Y1Mjo2QUZDNzIxOSIsInZpc2l0b3JfaWQiOiI3NDI4NjM5MTY1NjgxMjY3MjI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0e2bc81ba24e7ef7b60e50e3734b5c5765ad1001998198d03f34a59e5b2bc892 |
| hovercard-subject-tag | issue:548559304 |
| 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/algorithm-visualizer/server/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e130310a67c78ba87c00ff72e5cca504389cf37e157ae3dd5740328f71895b9/algorithm-visualizer/server/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e130310a67c78ba87c00ff72e5cca504389cf37e157ae3dd5740328f71895b9/algorithm-visualizer/server/issues/1 |
| og:image:alt | I would like to run the platform completely locally, but it seems that the server component needs an internet connection to access the algorithms in the algorithms repository and the tracer api. I ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FullMetalPancake |
| hostname | github.com |
| expected-hostname | github.com |
| None | f0400aaa3adebc3df5b3d70984789caaa7772d54ded54da6be732f4f29987fd8 |
| turbo-cache-control | no-preview |
| go-import | github.com/algorithm-visualizer/server git https://github.com/algorithm-visualizer/server.git |
| octolytics-dimension-user_id | 38487505 |
| octolytics-dimension-user_login | algorithm-visualizer |
| octolytics-dimension-repository_id | 190698025 |
| octolytics-dimension-repository_nwo | algorithm-visualizer/server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 190698025 |
| octolytics-dimension-repository_network_root_nwo | algorithm-visualizer/server |
| 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 | 582365d64c0339cca0368fed1331a8172e39e9a1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width