Jack Robison
0b4c4cf6ca
register api command with metaclass, add deprecated and flags decorators
2017-05-30 17:42:48 -04:00
Jack Robison
6931d8e586
decorator for queued api commands
2017-05-11 14:31:49 -04:00
Alex Grintsvayg
7f7a6a619f
tests for windows, simplify pylint
2017-04-19 14:59:06 -04:00
Alex Grintsvayg
c9c84784c9
restore http error codes, add some color
2017-03-24 17:19:55 -04:00
Alex Grintsvayg
3f08b5f711
pylint errors
2017-03-23 16:05:26 -04:00
Alex Grintsvayg
7708c4a15c
add todo
2017-03-23 15:44:23 -04:00
Alex Grintsvayg
9410cd9e77
format response and error properly
2017-03-23 15:37:28 -04:00
Alex Grintsvayg
0c42bc6382
fixes, refactors
2017-03-23 14:11:01 -04:00
Alex Grintsvayg
63c71760dd
hack for lbrynet-cli for now
2017-03-23 11:09:40 -04:00
Alex Grintsvayg
25d9f008de
fix error handling in jsonrpc
2017-03-23 11:09:40 -04:00
Alex Grintsvayg
c4b65fddac
newline after jsonrpc response
2017-03-14 11:11:29 -04:00
Alex Grintsvayg
92d423aefd
fix jsonrpc http headers
2017-03-13 11:54:40 -04:00
jobevers
993f2e54f9
more fixes for build
2017-02-16 14:13:01 -06:00
Job Evers-Meltzer
caa8f73f7c
remove header check
2017-02-16 14:09:43 -06:00
Job Evers-Meltzer
e2db99f7ab
allow requests that match allowed-origin
2017-02-16 11:44:23 -05:00
Alex Grintsvayg
46cb6b204a
nicer error output
2017-01-31 10:38:07 -05:00
Alex Grintsvayg
86ba7ffd5c
explicitly list jsonrpc params in function signature. add jsonrpc tests
2017-01-30 09:58:28 -08:00
Job Evers-Meltzer
13bfcb3561
fix missing id_ parameter to _render_error
2017-01-17 20:01:28 -06:00
Alex Grintsvayg
23872c77e9
fix long lines
2017-01-17 12:31:48 -05:00
Alex Grintsvayg
267c6cbaca
refactor conf.settings
2017-01-16 22:32:54 -05:00
Jack Robison
e03bba0b62
handle dropped api requests
2017-01-13 10:41:59 -06:00
Alex Grintsvayg
86aa8e1de0
updates based on job's comments
2017-01-11 15:39:28 -05:00
Alex Grintsvayg
5c429e15bd
remove authjsonrpc subhandlers. we dont use them
2017-01-11 15:39:28 -05:00
Alex Grintsvayg
05725e0dc9
rpc works with authentication
2017-01-11 15:39:28 -05:00
Alex Grintsvayg
f050337dbc
incorporate job's changes
2017-01-11 15:39:28 -05:00
Alex Grintsvayg
6d7b09a3aa
remove return codes that are not being used
2017-01-11 15:39:28 -05:00
Alex Grintsvayg
962edb8e4c
rename api endpoints
2017-01-11 15:39:28 -05:00
Job Evers‐Meltzer
d32bb9270a
Merge pull request #376 from lbryio/add-id
...
add id field to jsonrpc response
2017-01-09 15:23:24 -06:00
Job Evers
4e0194d576
add id field to jsonrpc response
2017-01-02 20:12:37 -06:00
Job Evers
f7308beee9
upgrade txJson-RCP to 0.5
...
The older version we were running didn't support jsonrpc v2 for
error codes, which both the command line client and ui client
were expecting.
2017-01-02 19:15:25 -06:00
Job Evers-Meltzer
e823bb2012
Bug fix in auth.server
...
Fixes a mistake in fa8190356a
,
where an usage of _log_and_render_error was overlooked
2016-12-30 16:48:44 -06:00
Job Evers-Meltzer
39b2e44492
Replace settings with conf.settings
...
In the next commit I change conf.settings to be initialized
at runtime instead of load time and so any import of
`from lbrynet.conf import settings` will be and stay None if
it happens before the initialization.
2016-12-30 13:05:18 -06:00
Job Evers-Meltzer
fa8190356a
replace log_support.failure calls
2016-12-15 18:58:15 -06:00
Job Evers-Meltzer
c30ea04959
Remove commented code
...
This is the result of running eradicate (https://github.com/myint/eradicate )
on the code and double-checking the changes.
2016-12-15 18:58:06 -06:00
Job Evers-Meltzer
7bce37a720
pylint: add check for missing-final-newline
2016-12-14 19:21:59 -06:00
Job Evers-Meltzer
b64fa51567
fixup long lines
2016-12-07 09:38:34 -05:00
Job Evers
ee00d1984a
allow Access-Control-Allow-Origin to be configurable
2016-12-05 15:34:48 -05:00
Job Evers-Meltzer
6a8789050c
Allow 0.0.0.0 for api interface
...
For a host to be able to access the daemon running inside a docker
container the damon needs to be listening to 0.0.0.0
- move the API_INTERFACE setting to the adjustablesettings
- check the port matches as well as the interface
2016-11-28 19:19:05 -06:00
Jack
0a9ef07787
Merge branch 'master' into error-messages
...
# Conflicts:
# lbrynet/lbrynet_daemon/Daemon.py
# lbrynet/lbrynet_daemon/auth/server.py
2016-11-22 15:44:47 -05:00
Jack
e08d0eb8f9
_log_and_render_error
2016-11-22 15:11:25 -05:00
Jack
ba7f326e72
use log_support
2016-11-16 15:16:15 -05:00
Alex Grintsvayg
7ecc8103d8
improve error analytics
...
- move analytics creation earlier in the startup process
- add several events to track startup, startup failure, other errors
- abstract platform detection into separate file
- add "build" type to platform so we can differentiate devs vs live users
2016-11-15 10:31:35 -05:00
Jack
5ae3485411
Merge branch 'master' into error-messages
...
# Conflicts:
# lbrynet/dht/protocol.py
2016-11-14 14:11:02 -05:00
Jack
8f98469969
unused imports
2016-11-14 14:10:19 -05:00
Jack
908c9a3bfa
feedback from job
2016-11-14 13:53:11 -05:00
Jack
ec4f9011b9
meaningful API error messages
2016-11-11 13:40:19 -05:00
Jack
7d04ae2237
use whole message to make hmac
2016-11-02 11:38:09 -04:00
Job Evers-Meltzer
862055a6de
move settings into conf file
2016-10-27 14:31:27 -05:00
Jack
1951ea09cd
updates from master, more refactoring
...
-lbrynet.lbrynet_daemon.auth.client.LBRYAPIClient.config will detect if
it needs to return the auth/non-auth version
2016-10-26 03:16:33 -04:00
Jack
293933163f
move USE_AUTH_HTTP to adjustable settings
2016-10-19 14:59:10 -04:00