Boa noite! Estou com problema ao configurar o Painel do NovoSga, após ter formatado meu PC porque estava ocorrendo blueScreen demais, mais após ter feito isso quando rodo a aplicação do painel pelo comando npm run dev dá o erro: Oops! Network Error. Já baixei a versão gerada e ocorre a mesma coisa.
No console aparece o seguinte:
C:\lcs\panel2\node_m…adapters\xhr.js:178 POST https://10.10.30.69/novosga/public/api/token net::ERR_CONNECTION_REFUSED
dispatchXhrRequest @ C:\lcs\panel2\node_m…adapters\xhr.js:178
xhrAdapter @ C:\lcs\panel2\node_m…\adapters\xhr.js:12
dispatchRequest @ C:\lcs\panel2\node_m…spatchRequest.js:59
Promise resolved (async)
request @ C:\lcs\panel2\node_m…ib\core\Axios.js:51
wrap @ C:\lcs\panel2\node_m…b\helpers\bind.js:9
(anonymous) @ api.js?62f4:22
F @ _export.js?63b6:36
request @ api.js?62f4:21
(anonymous) @ auth.js?405d:82
F @ _export.js?63b6:36
token @ auth.js?405d:54
wrappedActionHandler @ C:\lcs\panel2\node_m…\vuex.common.js:723
dispatch @ C:\lcs\panel2\node_m…\vuex.common.js:430
boundDispatch @ C:\lcs\panel2\node_m…\vuex.common.js:324
save @ Settings.vue?e12e:486
submit @ Settings.vue?b974:694
invokeWithErrorHandling @ vue.esm.js?a026:1863
invoker @ vue.esm.js?a026:2188
original._wrapper @ vue.esm.js?a026:7559
Em Network aparece o seguinte no arquivo Token:
Request URL:https://10.10.30.69/novosga/public/api/token
Referrer Policy:no-referrer-when-downgrade
Request Headers
Provisional headers are shown
Accept:application/json, text/plain, */*
Content-Type:application/x-www-form-urlencoded;charset=UTF-8
Origin:http://localhost:9080
Referer:http://localhost:9080/
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Electron/2.0.18 Safari/537.36
Form Data
view source
view URL encoded
grant_type:password
client_id:2_nbcoa4mw3vkgokw0k0gw4cssoc8s0o8448ww0wocg4ggggsck
client_secret:4c4y6e8ynqskcc4cwkgw8kcs4sc0gw0k8w4wogwc08880s0ooo
username:gtipalmas
password: *****