No content-type or content-type ~= '^text/html' #6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I m getting this error, basically for any website.
I did a curl and I get the text/html output.
I m not sure if this matter but in the Generate RSS home page I read "htttp://..." not https and also to connect to server I have to use port 80. With port 8000 it does not connect.
Any advise?
ubuntu@ubuntu:~/hrss$ python3 manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
July 22, 2020 - 07:18:03
Django version 3.0.8, using settings 'hrss.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[2020-07-22 07:18:25,453] [DEBUG] [views] No content-type or content-type ~= '^text/html'
[2020-07-22 07:18:25,674] [DEBUG] [views] URL: https://www.agriculture.com
Hi!
The logging message
No content-type or content-type ~= ‘^text/html’
is normal behavior and does not indicate an error at all.Your error should be fixed in
47e24b6459
. Please let me know if it works for you.You can either
git checkout master && git pull
or download and run https://hipstercat.fr/gogs/hipstercat/hrss/releases/tag/v0.3Thanks for the prompt reply.
Yes it fixed my problem but I got another one.
Basically now I can see the webiste and I can select Element, Title and Content.
When I click Generate I get: 502 Bad Gateway nginx/1.10.3.
The website I m using is https://www.agriculture.com/markets/newswire/
My installation steps w/o errors:
python 3 is installed already.
sudo pip3 install virtualenv
git clone https://hipstercat.fr/gogs/hipstercat/hrss.git
cd hrss && python3 -m virtualenv --python=python3 .
source bin/activate && pip3 install -r requirements.txt
python3 manage.py migrate
python3 manage.py runserver
and I get
ubuntu@ubuntu:~/hrss$ python3 manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
July 22, 2020 - 07:18:03
Django version 3.0.8, using settings ‘hrss.settings’
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[2020-07-22 07:18:25,453] [DEBUG] [views] No content-type or content-type ~= ‘^text/html’
[2020-07-22 07:18:25,674] [DEBUG] [views] URL: https://www.agriculture.com
I m connecting to the server from another machine using:
http://192.168.1.xxx:80
the port 8000 does not work though server started at 8000 as I ca see above.
Pls advise
Thanks a lot
ok I have some more information...
I did a new install on my raspberry where I have a local browser. I managed to browse 127.0.0.1:8000 and it worked.
I see only two problems at this point..
Any idea?
python3 manage.py createsuperuser
and then navigate and log in to http://127.0.0.1:8000/admin/web/feed/. Here you will see all your configured feeds and clicking on the problematic one will allow you to fine tune the settings. Check theelement
property and set it to a less restrictive one (maybe your current value includes some article ID which is obviously unique).python3 manage.py runserver
allows only local connections and isn't open on your local network. You can fix it by runningpython3 manage.py runserver 0.0.0.0:8080
. You can also change the port number if you want to.Keep in mind HRSS is an abandonned project and I'm not planning to fix issues unless they are very simple to fix.
Thanks for your support.
DisallowedHost at /
Invalid HTTP_HOST header: '192.168.1.99:8000'. You may need to add '192.168.1.99' to ALLOWED_HOSTS.
I checked that \hrss\hrss\settings.py has this ALLOWED_HOSTS = [] but editing as
ALLOWED_HOSTS = [192.168.1.99] did not fix the problem
File "/home/pi/hrss/hrss/settings.py", line 29
ALLOWED_HOSTS = [192.168.1.99]
^
SyntaxError: invalid syntax
Pls advise.
Thanks for your time..
found the error
ALLOWED_HOSTS = ['192.168.1.99']
thanks.
Anyway.. I m very sorry you wont support it anymore.
I know I came late :)
I deleted my original feed and I lost track of what I did first. Now for any attempt I m getting "Error: feed is empty. Did you set up 'element' field correctly?" and I m sure the Element selection is correct according to how I did the others. I m basically selecting the "element" that contains all the info of a news, that will be replicated for all the other news.
Will keep on trying.. hope won't loose my mind :)