brysontyrrell / PatchServer

A self-hosted implementation of an external patch source for Jamf Pro 10.2+
http://patchserver.readthedocs.io/en/latest/
MIT License
67 stars 13 forks source link

DataTables warning: table id=webhook-list - Ajax error #24

Open iampavan opened 5 years ago

iampavan commented 5 years ago

So I setup the Patch Server. I am able to successfully upload/delete the software definitions via web browser. Then, I generate an API token. Using this API token I am able to successfully upload/delete the software definitions via CLI. Works great!

But now when I visit PatchServer URL via web browser, I get a warning : DataTables warning: table id=webhook-list - Ajax error. For more information about this error, please see http://datatables.net/tn/7 (This happens everytime I refresh the webpage).

This is what i see : /usr/local/bin/patchserver/error_log

[Wed Jun 05 22:24:01.248713 2019] [wsgi:error] [pid 46344] [remote 10.10.12.13:54872] --------------------------------------------------------------------------------
[Wed Jun 05 22:24:01.263624 2019] [wsgi:error] [pid 46344] [remote 10.10.12.13:54872] ERROR in error_handlers [/Library/PatchServer/patchserver/routes/error_handlers.py:25]:
[Wed Jun 05 22:24:01.263801 2019] [wsgi:error] [pid 46344] [remote 10.10.12.13:54872] Authentication required.
[Wed Jun 05 22:24:01.263896 2019] [wsgi:error] [pid 46344] [remote 10.10.12.13:54872] --------------------------------------------------------------------------------

Screenshot 1

Screenshot 2019-06-05 at 9 26 11 PM

Screenshot 2

Screenshot 2019-06-05 at 9 26 45 PM

Screenshot 3

Screenshot 2019-06-05 at 9 27 53 PM

brysontyrrell commented 5 years ago

@iampavan are you trying to add/modify titles from the UI after generating the API token?

iampavan commented 5 years ago

I tried to do it at first. Then I got “Unauthorized: Authentication required” message. You've mentioned on your blog that UI does not yet support API authentication. So this message is expected.

iampavan commented 5 years ago

@brysontyrrell I've tried blowing up the DB and restarting the service. Then regenerating the API token. I end up with the same DataTables warning everytime I refresh the page though.