Welcome! Log In Create A New Profile

Advanced

Static files

May 11, 2020 10:24AM
I'm trying to figure out how to load static files .

I added to /etc/nginx/conf.d/default.conf the following lines:

server {
location / {
root /home/marco/webMatters/vueMatters/ggc/src/components/auth/weights;
}
}

But I'm still getting this error: Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
which, according to the people intervened in the github issue, should be related to a mis-configuration in the web-server for static files serving: https://github.com/justadudewhohacks/face-api.js/issues/598#issuecomment-626346393

How to solve the problem?
Looking forward to your kind help.
Marco
Subject Author Posted

Static files

MarcoI May 11, 2020 10:24AM

Re: Static files

MarcoI May 11, 2020 12:41PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready