Skip to content

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

Open
@ondrovic

Description

@ondrovic

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions