isso-comments / isso

a Disqus alternative
https://isso-comments.de
MIT License
5.03k stars 440 forks source link

Isso gives 404 Not Found and Unexpected token < Error #123

Closed didibus closed 10 years ago

didibus commented 10 years ago

When I try to submit a comment I get 404 Not Found and Unexpected Token < Error

I have Isso 0.9.5 running under uWSGI and /isso/info works great giving me:

{"origin": "http://example.tld", "host": "http://example.tld/isso", "version": "0.9.5", "moderation": false}

Here are my configs:

Nginx:

    location /isso {
            uwsgi_param HTTP_X_FORWARDED_FOR $proxy_add_x_forwarded_for;
            uwsgi_param HTTP_X_SCRIPT_NAME /isso;
            uwsgi_pass unix:///tmp/isso/isso.sock;
            include uwsgi_params;

            auth_basic off;
    }

uWSGI:

[uwsgi]
socket = /tmp/isso/isso.sock
master = true
; set to `nproc`
processes = 4
cache2 = name=hash,items=1024,blocksize=32
; you may change this
spooler = /tmp/isso/mail
module = isso.run
; uncomment if you use a virtual environment
; virtualenv = /path/to/isso
env = ISSO_SETTINGS=/etc/isso/isso.conf

chown-socket = www-data:www-data

And Isso:

[general]

dbpath = /var/local/isso/comments.db
name =
host = http://example.tld/
max-age = 365d
notify = stdout
log-file = /var/local/isso/messages.log

[moderation]

enabled = false
purge-after = 30d

[server]

listen = unix:///tmp/isso/isso.sock
reload = off
profile = off

[smtp]

username =
password =
host = localhost
port = 587
security = starttls
to =
from =
timeout = 10

[guard]

enabled = true
ratelimit = 15
direct-reply = 15
reply-to-self = false

[markup]

options = strikethrough, autolink, fenced_code, no_intra_emphasis
allowed-elements =
allowed-attributes =

[hash]

salt = Eech7co8Ohloopo9Ol6baimi
algorithm = pbkdf2

Thanks for the help.

didibus commented 10 years ago

Here's my embed script:

<script data-isso="http://example.tld/isso/" src="http://example.tld/isso/js/embed.min.js"></script>
posativ commented 10 years ago

Isso currently checks if the page, where you want to comment, actually exists. Does the demo site work for you (http://example.tld/isso/demo/index.html)?

didibus commented 10 years ago

Yes, the demo site does work.

didibus commented 10 years ago

Oh, I think I might know the problem. My website is protected behind http basic access authentication. My guess is that, probably when Isso checks that the webpage does exist for the comment, it fails, since it can't authenticate to it.

My /isso subdomain is not under basic auth, that's probably why the demo works.

Any idea how I could get around this problem?

posativ commented 10 years ago

There's currently no workaround, but the HTTP connection check will get optional in the next release.

posativ commented 10 years ago

Duplicate of #71