You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From within ghe PC-Server:
(base) marco@pc:~$ curl -Iki https://localhost/sockjs-node/info?t=1580397983088
HTTP/2 405
server: nginx/1.14.0 (Ubuntu)
date: Fri, 31 Jan 2020 08:19:02 GMT
allow: OPTIONS, GET
Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: nginx/1.14.0 (Ubuntu)
< Date: Fri, 31 Jan 2020 14:04:11 GMT
< Content-Type: application/json; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< Vary: Origin
< Cache-Control: no-store, no-cache, no-transform, must-revalidate, max-age=0
< Strict-Transport-Security: max-age=31536000
<
Connection #0 to host ggc.world left intact
{"websocket":true,"origins":[":"],"cookie_needed":false,"entropy":1587194190}(base)
Network Tab in the browser:
The text was updated successfully, but these errors were encountered:
marcoippolito
changed the title
sockjs.js?9be2:1606 GET https://localhost/sockjs-node/info?t=1579773805212 net::ERR_CONNECTION_REFUSED
sockjs-node errors
Jan 23, 2020
@PS-Ddevil I didn't directly create a SockJS object myself. I just created a tiny test app with vue cli, so without adding anything, apart from what the empty vue-cli scaffolding brings.
(base) marco@pc:~/vueMatters/testproject$ npm run serve
Uh oh!
There was an error while loading. Please reload this page.
I just created a tiny test app with vue cli, so without adding anything, apart from what the empty vue-cli scaffolding brings.
(base) marco@pc:~/vueMatters/testproject$ npm run serve
INFO Starting development server...
98% after emitting CopyPlugin
DONE Compiled successfully in 1409ms 8:14:46 PM
With this /etc/nginx/conf.d/default.conf :
with vue.config.js :
and with this webpack.config.js :
Get this error message:
Ubuntu 18.04.03 Server Edition
(base) marco@pc:~$ node -v
v12.10.0
npm -v
6.13.6
[email protected]
vue --version
@vue/cli 4.1.2
(base) marco@pc:~$ nginx -v
nginx version: nginx/1.14.0 (Ubuntu)
From within ghe PC-Server:
(base) marco@pc:~$ curl -Iki https://localhost/sockjs-node/info?t=1580397983088
HTTP/2 405
server: nginx/1.14.0 (Ubuntu)
date: Fri, 31 Jan 2020 08:19:02 GMT
allow: OPTIONS, GET
(base) marco@pc:~/vueMatters/testproject$ curl -vk https://localhost/sockjs-
node/info?t=1580397983088
CApath: /etc/ssl/certs
< HTTP/2 200
< server: nginx/1.14.0 (Ubuntu)
< date: Fri, 31 Jan 2020 14:00:47 GMT
< content-type: application/json; charset=UTF-8
< access-control-allow-origin: *
< vary: Origin
< cache-control: no-store, no-cache, no-transform, must-revalidate, max-age=0
< strict-transport-security: max-age=31536000
<
From a laptop:
(base) marco@marco-U36SG:~$ curl -Iki https://ggc.world/sockjs-node/info?t=1580397983088
HTTP/1.1 405 Method Not Allowed
Server: nginx/1.14.0 (Ubuntu)
Date: Fri, 31 Jan 2020 09:34:59 GMT
Connection: keep-alive
Allow: OPTIONS, GET
(base) marco@marco-U36SG:~$ curl -vk https://ggc.world/sockjs-node/info?t=1580397983088
CApath: none
< HTTP/1.1 200 OK
< Server: nginx/1.14.0 (Ubuntu)
< Date: Fri, 31 Jan 2020 14:04:11 GMT
< Content-Type: application/json; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< Vary: Origin
< Cache-Control: no-store, no-cache, no-transform, must-revalidate, max-age=0
< Strict-Transport-Security: max-age=31536000
<
{"websocket":true,"origins":[":"],"cookie_needed":false,"entropy":1587194190}(base)
Network Tab in the browser:
The text was updated successfully, but these errors were encountered: