Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"422 Unprocessable Entity" on every page. #384

Open
gabeguz opened this issue Mar 6, 2023 · 2 comments
Open

"422 Unprocessable Entity" on every page. #384

gabeguz opened this issue Mar 6, 2023 · 2 comments

Comments

@gabeguz
Copy link

gabeguz commented Mar 6, 2023

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.

@karlicoss
Copy link
Owner

karlicoss commented Mar 7, 2023 via email

@gabeguz
Copy link
Author

gabeguz commented Mar 7, 2023

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: tom@tomchristie.com
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 <tom@tomchristie.com>
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants