Closed adwydman closed 6 years ago
Which version of sealious are you using?
If you are using alpha
- you should GET /api/v1/collections/books
, GET /api/v1/collections/codes
, etc. :)
FML... ok, thanks...
Okay, the problem is solved for books
, but it persists for codes
, even when I changed the route. The error is still the same.
Yes, because codes
isn't a collection. I think that you have to check declaration www_server.route
in currently version of sealious-www-server
. Unfortunately sealious-www-server
requires rewrite. Probably path: "/api/v1/codes"
is overlooked in declaration process.
Why you didn't use collection structure for codes
?
Because their behaviour is not typical and it required a custom handler.
Do you have this declaration in main.js: www_server = Sealious.ChipManager.get_chip("channel", "www_server");
?
The problem is connected with this line from sealious-www-server
: www_server.kill_session(request.state.SealiousSession);
, I bet that the problem lies in your handler.
As we talked afk today, please use Collections for codes. Disable the default create
route with an access strategy (create: "noone"
) and create a custom route only for creating the codes. Cheers!
Issues moved do Sealcode's phabricator: https://hub.sealcode.org/project/view/11/
I try to run FKA bookshop app, here are REST routes:
When I try to
GET api/v1/books
:When I try to
GET api/v1/codes
I get status code 500 and error: