Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unable to access existing snippets, or create new one #481

Open
ondrovic opened this issue Aug 22, 2024 · 5 comments
Open

[Bug]: Unable to access existing snippets, or create new one #481

ondrovic opened this issue Aug 22, 2024 · 5 comments

Comments

@ondrovic
Copy link

Describe the bug

Fresh install, unable to open existing db.json file, unable to create new items

To reproduce

Opening developer tools in masscode results in this
It appears that the api server might no be running like it's supposed to be, there are similar issues round snippets being lost, but I think this is the reason behind it

index.af7082e3.js:12 GET http://localhost:3033/snippets/embed-folder net::ERR_CONNECTION_REFUSED
(anonymous) @ index.af7082e3.js:12
me @ index.af7082e3.js:12
setTimeout (async)
UX @ index.af7082e3.js:12
r @ index.af7082e3.js:12
getSnippets @ index.af7082e3.js:13
(anonymous) @ index.af7082e3.js:8
E @ index.af7082e3.js:2082
Fp @ index.af7082e3.js:4
nd @ index.af7082e3.js:4
n @ index.af7082e3.js:4
index.af7082e3.js:13 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'sort')
    at Q8 (index.af7082e3.js:13)
    at Proxy.getSnippets (index.af7082e3.js:13)
Q8 @ index.af7082e3.js:13
getSnippets @ index.af7082e3.js:13
index.af7082e3.js:12 GET http://localhost:3033/folders net::ERR_CONNECTION_REFUSED
(anonymous) @ index.af7082e3.js:12
me @ index.af7082e3.js:12
setTimeout (async)
UX @ index.af7082e3.js:12
r @ index.af7082e3.js:12
getFolders @ index.af7082e3.js:12
(anonymous) @ index.af7082e3.js:8
(anonymous) @ index.af7082e3.js:2082
setup @ index.af7082e3.js:2082
Fp @ index.af7082e3.js:4
eQ @ index.af7082e3.js:4
qk @ index.af7082e3.js:4
_e @ index.af7082e3.js:4
q @ index.af7082e3.js:4
z @ index.af7082e3.js:4
wt @ index.af7082e3.js:4
run @ index.af7082e3.js:1
Fp @ index.af7082e3.js:4
dk @ index.af7082e3.js:4
Promise.then (async)
ck @ index.af7082e3.js:4
uk @ index.af7082e3.js:4
oK @ index.af7082e3.js:4
B @ index.af7082e3.js:4
KS @ index.af7082e3.js:1
Jv @ index.af7082e3.js:1
(anonymous) @ index.af7082e3.js:1
KS @ index.af7082e3.js:1
Jv @ index.af7082e3.js:1
set value @ index.af7082e3.js:1
Ae @ index.af7082e3.js:12
(anonymous) @ index.af7082e3.js:12
Promise.then (async)
de @ index.af7082e3.js:12
j @ index.af7082e3.js:12
n @ index.af7082e3.js:2082
Fp @ index.af7082e3.js:4
nd @ index.af7082e3.js:4
sK @ index.af7082e3.js:4
n @ index.af7082e3.js:2082
Fp @ index.af7082e3.js:4
nd @ index.af7082e3.js:4
n @ index.af7082e3.js:4
index.af7082e3.js:12 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'filter')
    at Proxy.getFolders (index.af7082e3.js:12)
    at async index.af7082e3.js:2082
getFolders @ index.af7082e3.js:12
await in getFolders (async)
setup @ index.af7082e3.js:2082
Fp @ index.af7082e3.js:4
eQ @ index.af7082e3.js:4
qk @ index.af7082e3.js:4
_e @ index.af7082e3.js:4
q @ index.af7082e3.js:4
z @ index.af7082e3.js:4
wt @ index.af7082e3.js:4
run @ index.af7082e3.js:1
Fp @ index.af7082e3.js:4
dk @ index.af7082e3.js:4
Promise.then (async)
ck @ index.af7082e3.js:4
uk @ index.af7082e3.js:4
oK @ index.af7082e3.js:4
B @ index.af7082e3.js:4
KS @ index.af7082e3.js:1
Jv @ index.af7082e3.js:1
(anonymous) @ index.af7082e3.js:1
KS @ index.af7082e3.js:1
Jv @ index.af7082e3.js:1
set value @ index.af7082e3.js:1
Ae @ index.af7082e3.js:12
(anonymous) @ index.af7082e3.js:12
Promise.then (async)
de @ index.af7082e3.js:12
j @ index.af7082e3.js:12
n @ index.af7082e3.js:2082
Fp @ index.af7082e3.js:4
nd @ index.af7082e3.js:4
sK @ index.af7082e3.js:4
n @ index.af7082e3.js:2082
Fp @ index.af7082e3.js:4
nd @ index.af7082e3.js:4
n @ index.af7082e3.js:4
index.af7082e3.js:12 POST http://localhost:3033/folders net::ERR_CONNECTION_REFUSED
(anonymous) @ index.af7082e3.js:12
me @ index.af7082e3.js:12
setTimeout (async)
UX @ index.af7082e3.js:12
r @ index.af7082e3.js:12
addNewFolder @ index.af7082e3.js:12
(anonymous) @ index.af7082e3.js:8
ZL @ index.af7082e3.js:13
Fp @ index.af7082e3.js:4
nd @ index.af7082e3.js:4
n @ index.af7082e3.js:4
index.af7082e3.js:12 GET http://localhost:3033/folders net::ERR_CONNECTION_REFUSED
(anonymous) @ index.af7082e3.js:12
me @ index.af7082e3.js:12
setTimeout (async)
UX @ index.af7082e3.js:12
r @ index.af7082e3.js:12
getFolders @ index.af7082e3.js:12
(anonymous) @ index.af7082e3.js:8
addNewFolder @ index.af7082e3.js:12
await in addNewFolder (async)
(anonymous) @ index.af7082e3.js:8
ZL @ index.af7082e3.js:13
Fp @ index.af7082e3.js:4
nd @ index.af7082e3.js:4
n @ index.af7082e3.js:4
index.af7082e3.js:4 TypeError: Cannot read properties of null (reading 'filter')
    at Proxy.getFolders (index.af7082e3.js:12)
    at async Proxy.addNewFolder (index.af7082e3.js:12)
    at async ZL (index.af7082e3.js:13)
rK @ index.af7082e3.js:4
C4 @ index.af7082e3.js:4
(anonymous) @ index.af7082e3.js:4
Promise.catch (async)
nd @ index.af7082e3.js:4
n @ index.af7082e3.js:4
index.af7082e3.js:13 POST https://m.masscode.io/api/event net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ index.af7082e3.js:13
iN @ index.af7082e3.js:13
VZ @ index.af7082e3.js:13
s6.request @ index.af7082e3.js:13
s6.<computed> @ index.af7082e3.js:13
(anonymous) @ index.af7082e3.js:12
pa @ index.af7082e3.js:13
o @ index.af7082e3.js:2082
await in o (async)
Fp @ index.af7082e3.js:4
nd @ index.af7082e3.js:4
n @ index.af7082e3.js:4
index.af7082e3.js:12 Uncaught (in promise) Error: Network Error
    at GL (index.af7082e3.js:12)
    at XMLHttpRequest.h.onerror (index.af7082e3.js:13)
GL @ index.af7082e3.js:12
h.onerror @ index.af7082e3.js:13
error (async)
(anonymous) @ index.af7082e3.js:13
iN @ index.af7082e3.js:13
VZ @ index.af7082e3.js:13
s6.request @ index.af7082e3.js:13
s6.<computed> @ index.af7082e3.js:13
(anonymous) @ index.af7082e3.js:12
pa @ index.af7082e3.js:13
o @ index.af7082e3.js:2082
await in o (async)
Fp @ index.af7082e3.js:4
nd @ index.af7082e3.js:4
n @ index.af7082e3.js:4
index.af7082e3.js:13 POST https://m.masscode.io/api/event net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ index.af7082e3.js:13
iN @ index.af7082e3.js:13
VZ @ index.af7082e3.js:13
s6.request @ index.af7082e3.js:13
s6.<computed> @ index.af7082e3.js:13
(anonymous) @ index.af7082e3.js:12
pa @ index.af7082e3.js:13
setup @ index.af7082e3.js:2082
Fp @ index.af7082e3.js:4
eQ @ index.af7082e3.js:4
qk @ index.af7082e3.js:4
_e @ index.af7082e3.js:4
q @ index.af7082e3.js:4
z @ index.af7082e3.js:4
wt @ index.af7082e3.js:4
run @ index.af7082e3.js:1
Fp @ index.af7082e3.js:4
dk @ index.af7082e3.js:4
Promise.then (async)
ck @ index.af7082e3.js:4
uk @ index.af7082e3.js:4
oK @ index.af7082e3.js:4
B @ index.af7082e3.js:4
KS @ index.af7082e3.js:1
Jv @ index.af7082e3.js:1
(anonymous) @ index.af7082e3.js:1
KS @ index.af7082e3.js:1
Jv @ index.af7082e3.js:1
set value @ index.af7082e3.js:1
Ae @ index.af7082e3.js:12
(anonymous) @ index.af7082e3.js:12
Promise.then (async)
de @ index.af7082e3.js:12
j @ index.af7082e3.js:12
n @ index.af7082e3.js:2082
Fp @ index.af7082e3.js:4
nd @ index.af7082e3.js:4
sK @ index.af7082e3.js:4
n @ index.af7082e3.js:2082
Fp @ index.af7082e3.js:4
nd @ index.af7082e3.js:4
n @ index.af7082e3.js:4
index.af7082e3.js:12 Uncaught (in promise) Error: Network Error
    at GL (index.af7082e3.js:12)
    at XMLHttpRequest.h.onerror (index.af7082e3.js:13)
    ```


### Version

3.11.0

### OS

Microsoft Windows 11 Pro (Build 22631)

### Validations

- [X] Follow our [Code of Conduct](https://github.com/massCodeIO/massCode/blob/master/CODE_OF_CONDUCT.md)
- [X] Check that there isn't [already an issue](https://github.com/massCodeIO/massCode/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/massCodeIO/massCode/discussions).
@ondrovic
Copy link
Author

Update on this: I was temporarily able to get this resolved by uninstalling again, cleaning out my %appdata%, and registry values. Then I did a reboot, reinstall and reboot again. It seems to be works as of right now, will update this post over the next couple days or so if something changes.

@antonreshetov
Copy link
Member

Unfortunately I don't have windows 11, I'm a mac user. Apparently port 3033 is busy or blocked (could be a firewall or something else)

@ondrovic
Copy link
Author

@antonreshetov agreed it was just weird because it had been working fine, more than likely something os related for sure. It has been working fine ever since, so I'll close this for now.

@ondrovic
Copy link
Author

Re opening this it happened again after a reboot today

@ondrovic
Copy link
Author

ondrovic commented Oct 23, 2024

So mine again was the port issue, I downloaded the source code and changed the port to something else and launched it and all the snippets showed up again.

@antonreshetov maybe making the API_PORT a preference item so it can be changed (as there seems to be something on windows that sometimes uses that same port) 🤷 looks like there is already a discussion item here about it
#329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants