Commit Graph

112 Commits

Author SHA1 Message Date
Vlad Stan
dc0c4564af fix: merge conflict 2022-12-16 12:27:26 +02:00
Vlad Stan
2eeef5c1ed
Merge branch 'main' into FinalAdminUI 2022-12-16 12:21:25 +02:00
callebtc
78f94483d0 fix: no stacktrace for validartion errors 2022-12-14 19:10:26 +01:00
callebtc
5b8c5d52da fix: no stack trace for http errors 2022-12-14 19:09:01 +01:00
callebtc
317c17c1b3 make format 2022-12-14 18:42:45 +01:00
callebtc
4a060baa75 feat: error responses work 2022-12-14 18:40:07 +01:00
callebtc
fa7bbb62e2 correct error codes in tests 2022-12-14 14:59:11 +01:00
callebtc
b5eb8b7ee8 add handler for RequestValidationError 2022-12-14 14:33:13 +01:00
callebtc
f47772d528 fix: fastapi exception handling and printing 2022-12-14 14:18:42 +01:00
Vlad Stan
60bb556f2c fix: log init exceptions 2022-12-09 10:31:29 +02:00
Vlad Stan
d15782521d refactor: include admin extension into core 2022-12-08 15:41:52 +02:00
dni ⚡
89933c2d30 test should pass now, WALLET is initialised after the settings are loaded from db. 2022-12-07 13:38:33 +01:00
dni ⚡
d2cd972663 refactor from settings.py into admin crud, but broke frontend
formatting
2022-12-06 11:02:01 +01:00
dni ⚡
b4126e664b nitpicks from vlad 2022-12-05 12:28:26 +01:00
dni ⚡
9e60b5374c fake wallet queue issue 2022-12-05 12:18:59 +01:00
dni ⚡
d862598179 readd global baseurl needed for lnurlp 2022-11-24 11:44:55 +01:00
Aaron Dewes
fc1a87f617
Remove unused proxy_fix (#1007) 2022-10-24 11:50:52 +02:00
dni ⚡
1b675f295b add get settings endpoint with only values you can also save 2022-10-21 11:13:40 +02:00
dni ⚡
c9ead25d50 bugfixes and fix topup wallet 2022-10-12 13:08:59 +02:00
dni ⚡
91a5f7d214 add callback for saas app 2022-10-10 23:27:46 +02:00
dni ⚡
3bf38884ed log successful connection to backend with logger.success() 2022-10-07 08:30:07 +02:00
dni ⚡
83de83993c fix signal handler 2022-10-06 09:38:17 +02:00
dni ⚡
282ef34d11 reintroduce signalhandler and ad encrypted macaroon 2022-10-05 13:12:16 +02:00
dni ⚡
c845502f28 fix WALLET initialisation 2022-10-05 13:05:09 +02:00
dni ⚡
ada5cd4330 remove unused function 2022-10-05 13:04:38 +02:00
dni ⚡
92e52cd883 overall fixes 2022-10-05 13:04:38 +02:00
dni ⚡
9e2f1f6545 big app rework, startup ordering, remove admin extension stuff 2022-10-05 13:03:13 +02:00
dni ⚡
a78ebbacd7 use logger in app.py 2022-10-05 13:01:59 +02:00
dni ⚡
cadb6b2161 fix merge error 2022-10-05 13:01:59 +02:00
dni ⚡
6c2a9b2258 format black 2022-10-05 13:01:59 +02:00
dni ⚡
e4c310d197 format 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
c32e0cbecb fix main merge missing settings 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
1adfb674cc cleanup and info to user on startup 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
08e54de99b fix sqlite and show user account 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
313574df19 make removeEmptyString fn as helper fn 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
582cc52ac6 make it work from g() 2022-10-05 13:01:59 +02:00
Tiago vasconcelos
32a6a6ae2f get admin settings at startup 2022-10-05 13:01:59 +02:00
calle
5a12f4f237
Improved SSE listeners (#865)
* logging listeners

* comments

* generate privkey upon init

* listener queue

* remove duplicate check

* make format

* reuse channel

* error handling in sse listener

* uuid for listeners

* register named invoices

* uuid for listeners and listener list

* fix poetry lock

* setuptools

* requirements asyncio timeout

* setuptool;s

* make format

* remove async-timeout

* async_timeout readd

* try lower setuptools version

* try lower lower setuptools version

* back to current version + fix, maybe

* fix worflows to use poetry 1.2.1

* remove uneeded setuptools from build-system

* fix up formatting workflow

* debug to trace

* more traces

* debug logs to trace

Co-authored-by: dni  <office@dnilabs.com>
2022-10-04 09:51:47 +02:00
calle
2ee10e28c5
Backend: Unstuck outgoing payments (#857)
* first attempts

* lndrest works

* fix details

* optional fee update

* use base64.urlsafe_b64encode

* return paymentstatus

* CLN: return pending for pending invoices

* grpc wip

* lndgrpc works

* cln: return pending for pending invoices really this time

* retry wallet out of exception

* wip eclair

* take all routines into try except

* cliche: return error

* rename payment.check_pending() to payment.check_status()

* rename payment.check_pending() to payment.check_status()

* eclair: works

* eclair: better error check

* opennode: works

* check payment.checking_id istead of payment.ok

* payment.ok check as well

* cln: works?

* cln: works

* lntxbot: works

* lnbits/wallets/lnpay.py

* cln: error handling

* make format

* lndhub full detail update

* spark: wip

* error to False

* wallets: return clean PaymentResponse

* opennode: strict error

* cliche: works

* lnbits: works

* cln: dont throw error

* preimage not error

* fix cln

* do not add duplicate payments

* revert cln

* extra safety for cln

* undo crud changes until tests work

* tasks: better logging and 0.5s sleep for regular status check

* 0.1 s

* check if wallet exists

* lnbits unhashed description

* remove sleep

* revert app.py

* cleanup

* add check

* clean error

* readd app.py

* fix eclaid
2022-08-30 13:28:58 +02:00
calle
befe96257d
Fix/header_check_fix_2 (#880)
* dont assume field

* check better
2022-08-14 23:17:53 +02:00
calle
9bc99f796b
Fix/header_lookup_none (#879)
* dont assume field

* fix header lookup
2022-08-14 22:59:02 +02:00
calle
c85be8dd22
dont assume field (#875) 2022-08-14 19:40:46 +02:00
dni ⚡
034813a1ab
stuck in retrying backend loop, fix issue #652 (#862)
* maybe solution to issue #652

* formatting, when precommit merge?

* Update lnbits/app.py

* Update lnbits/app.py

Co-authored-by: dni <dni.khr@gmail.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 14:46:47 +02:00
ben
817472c036 Merge branch 'main' into fix/mypy 2022-07-27 19:57:23 +01:00
ben
58659d2f47 Added meta for api /docs 2022-07-27 18:20:36 +01:00
Tiago Vasconcelos
41dc1b0512
Fix/hotfix tpos 2 (#783)
* fix older tpos without tips

* bad math requesting invoice

* make format
2022-07-27 16:45:17 +02:00
dni
895770e26a remove commented out and unused code in app object, it is now used in lnbits/__main__.py directly, fixes mypy error 2022-07-25 12:00:22 +02:00
ben
244d6f23bf Merge branch 'main' into matthewcroughan/nixify 2022-07-23 20:09:24 +01:00
calle
6a3a72b944
Uvicorn loguru format (#741)
* use loguru formatting for uvicorn logs

* remove depth from logging interceptor

* format for uvicorn

* black

* isort

* black again

* python3-dev

* python3-dev

* leaner pipeline

Co-authored-by: dni <dni.khr@gmail.com>
2022-07-15 19:54:12 +02:00
matthewcroughan
36e92765d3 treewide: use StaticFiles() rather than rel path
This commit is not exhaustive, and it is a trend in this codebase to not
use StaticFiles() and instead use relative paths. This means the code
cannot run anywhere other than the source code directory, as it will not
find the files it is looking for
2022-07-08 11:06:26 +01:00