personium / app-myboard

An application that runs on the home application. Sample memo app.
Apache License 2.0
2 stars 6 forks source link

Initial render produces 404 (Not Found) error #10

Closed dixonsiu closed 7 years ago

dixonsiu commented 7 years ago

The following is display in the debug console. Why is it trying to access unrelated cells? Should I ignore these errors?

GET https://demo.personium.io/hn-user-9001/io_personium_demo_app-myboard/MyBoardBox/my-board.json 404 (Not Found)
{"code":"PR404-DV-0002","message":{"lang":"en","value":"Box not found at [https://demo.personium.io/hn-user-9001/io_personium_demo_app-myboard]."}}

GET https://demo.personium.io/hn-user-9011/io_personium_demo_app-myboard/MyBoardBox/my-board.json 404 (Not Found)
{"code":"PR404-DV-0002","message":{"lang":"en","value":"Box not found at [https://demo.personium.io/hn-user-9011/io_personium_demo_app-myboard]."}}
csKyou commented 7 years ago

In order to check the cell in which myBoard is installed, we are trying to obtain the json file for all the external cells. It is an error that can be ignored.

dixonsiu commented 7 years ago

Since we only need to handle 403 error, added the following to mb.checkOtherAllowedCells.

    // Insufficient access privileges
    if (data.status === 403) {
        mb.appendRequestCells(extUrl, dispName);
    }