promnesia
promnesia copied to clipboard
"422 Unprocessable Entity" on every page.
Just installed promnesia (firefox extension with the backend running) and every page I go to the extension in firefox gives me the following error:
Error: Unprocessable Entity (422
632/o/<@moz-extension://d7ce6ee8-d2ae-400d-b9fd-211b93717ca4/background.js:1:27206
while requesting http://localhost:13131/visits
check extension options, make sure you set backend or disable it (set to empty string)
I can also see the error in the server console (so I know the HTTP request is getting there):
INFO: 127.0.0.1:51800 - "POST /visits HTTP/1.1" 422 Unprocessable Entity
I have only one source enabled and have run the indexer:
[gguzman@MTL-CA530 promnesia]$ cat config.py
from promnesia.common import Source
from promnesia.sources import auto
'''
List of sources to use.
You can specify your own, add more sources, etc.
See https://github.com/karlicoss/promnesia#setup for more information
'''
SOURCES = [
Source(
auto.index,
# just some arbitrary directory with plaintext files
'~/notes/',
name='notes',
)
]
Maybe it's an issue with a conflicting browser extension? I'll try disabling the other ones to see if that helps.
Hi! I think it's more likely the issue with backend, so disabling other extensions won't help. Can you check the version of uvicorn package on your system? E.g. "pip3 show uvicorn". If it's too old (comparing to the latest 0.20.0), I wonder if upgrading it would just solve all issues.
Otherwise it would probably be best to look in the server logs, they would have more stacktraces/specific line numbers.
On Mon, Mar 6, 2023, 17:43 Gabriel Guzman @.***> wrote:
Just installed promnesia (firefox extension with the backend running) and every page I go to the extension in firefox gives me the following error:
Error: Unprocessable Entity (422 @.***://d7ce6ee8-d2ae-400d-b9fd-211b93717ca4/background.js:1:27206
while requesting http://localhost:13131/visits check extension options, make sure you set backend or disable it (set to empty string)
I can also see the error in the server console (so I know the HTTP request is getting there):
INFO: 127.0.0.1:51800 - "POST /visits HTTP/1.1" 422 Unprocessable Entity
I have only one source enabled and have run the indexer:
@.*** promnesia]$ cat config.py from promnesia.common import Source from promnesia.sources import auto
''' List of sources to use.
You can specify your own, add more sources, etc. See https://github.com/karlicoss/promnesia#setup for more information ''' SOURCES = [ Source( auto.index, # just some arbitrary directory with plaintext files '~/notes/', name='notes', ) ]
Maybe it's an issue with a conflicting browser extension? I'll try disabling the other ones to see if that helps.
— Reply to this email directly, view it on GitHub https://github.com/karlicoss/promnesia/issues/384, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACHEBIW44EKNYDM2FGIEK3W2YH3RANCNFSM6AAAAAAVRLSAAE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Had an older version of uvicorn:
$ pip3 show uvicorn
Name: uvicorn
Version: 0.17.6
Summary: The lightning-fast ASGI server.
Home-page: https://www.uvicorn.org/
Author: Tom Christie
Author-email: [email protected]
License: BSD
Location: /home/ubisoft.org_gguzman/.local/lib/python3.10/site-packages
Requires: asgiref, click, h11
Required-by: promnesia, khoj-assistant
Upgraded to
$ pip3 show uvicorn
Name: uvicorn
Version: 0.20.0
Summary: The lightning-fast ASGI server.
Home-page:
Author:
Author-email: Tom Christie <[email protected]>
License:
Location: /home/ubisoft.org_gguzman/.local/lib/python3.10/site-packages
Requires: click, h11
Required-by: promnesia
Reran the indexer and stopped and started the promnesia server, but still getting the same error. I'll see if I can find where uvicorn is putting it's error logs to see if there is more info there. Thanks for your help.