nunux-keeper / keeper-docker

Self-hosted Nunux Keeper with Docker
GNU General Public License v3.0
60 stars 5 forks source link

Cannot add sites to be captured #3

Closed danmed closed 4 years ago

danmed commented 5 years ago

I've set up a new system for this and the script worked great. All the containers are running.

however when i try to add a page, nothing happens.

I can't see in the logs for either the keeper-core or the keeper-web containers that anything is going on.

any ideas where i should be looking?

danmed commented 5 years ago

I seem to be getting the below errors in the console when trying to create labels or add a new page :

SyntaxError: "JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 5 of the JSON data" helper.js:26:12
    dispatchAction helper.js:26
    createLabel actions.js:58
ncarlier commented 5 years ago

Can you check the Network console? Something seems to be wrong with the API. This error means that the API response is not a correct JSON response. Bad API path maybe.

danmed commented 5 years ago

Can you check the Network console? Something seems to be wrong with the API. This error means that the API response is not a correct JSON response. Bad API path maybe.

HI, i just checked and i seem to be getting a 404 POST error potentially..

image

danmed commented 5 years ago

Here's my traefik screenshot in case that helps at all :

image

danmed commented 5 years ago

I'm guessing.. that the url is meant to be

http:///keeper/api/v2/documents

and not

http:///api/v2/documents

danmed commented 5 years ago

I've redeployed and now traefik has an entry for API and it seems to be working.. seems to be stripping all the css and images out of anything it captures though..

ncarlier commented 5 years ago

In your screenshot API frontend and backend was missing. API URL should be: http://x.x.x.x/api/v2/documents And Webapp URL should be: http://x.x.x.x/keeper

danmed commented 5 years ago

In your screenshot API frontend and backend was missing. API URL should be: http://x.x.x.x/api/v2/documents And Webapp URL should be: http://x.x.x.x/keeper

Thanks.. its all working now.. can ijust check though.. there are 2 methods for capturing from a URL..

Extract : Does this literally just get text? Bookmark : This seems to be get a screenshot of the page?

ncarlier commented 5 years ago

Yes. Extract: get text (keeping the basic formatting) with images Bokkmark: create a full screenshot of the page More information here: https://keeper.nunux.org/doc/en/create-doc/