rr- / szurubooru

Image board engine, Danbooru-style.
GNU General Public License v3.0
704 stars 178 forks source link

Required file ‘content’ is missing. #151

Closed anoduck closed 6 years ago

anoduck commented 6 years ago

Not been the easiest setup, had to test several different configurations until something worked. It was difficult to discern from the documentation whether values for api_url, base_url, and data_url should be encapsulated within solitary quotation (paraphrasing) marks or not. In other words, whether to use:'solitary quotation marks' or no marks?

Whether this is related or not. I keep getting the same error returned when I attempt to upload images:

Required file ‘content’ is missing.

So far in order to get szurubooru to semi-work I have been using the below values:

api_url: localhost/api/ # where frontend connects to, example: http://api.example.com/
base_url: localhost/ # used to form links to frontend, example: http://example.com/
data_url: localhost/data/ # used to form links to posts and avatars, example: http://exa$
data_dir: '/Path/to/szurubooro/client/public/data/' # absolute path for posts and avatar$
user_agent: 'User Agent' # user agent name used to download files from the$

What am I doing wrong? Or, what did I forget to do.

anoduck commented 6 years ago

When I changed the configuration of the urls variables to be encapsulated in single parenthesis, I received a connection terminated response.

anoduck commented 6 years ago

When I changed to values of my configuration to:

api_url: 'http://szuru.local/api/' # where frontend connects to, example: http://api.example.com/
base_url: 'http://szuru.local/' # used to form links to frontend, example: http://example.com/
data_url: 'http://szuru.local/data/' # used to form links to posts and avatars, example: http://example.com/data/
data_dir: '/srv/szuru/client/public/data/' # absolute path for posts and avatars storage, example: /srv/www/booru/client/public/data/
user_agent: # user agent name used to download files from the web on behalf of the api users

I recieve a different error that complains about CORS:

An error happened while trying to log you in: Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc. 

Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.

I will continue to fornicate with my variables in the configuration, to see if I can find a correct configuration.

anoduck commented 6 years ago

I took a few days off the project to work on something else. When I turned my attention back to the project, the bug had disappeared.