-
Notifications
You must be signed in to change notification settings - Fork 33
Invoice Create: HTTP/2 stream 0 was not closed cleanly #27
Comments
hey sorry I took much time to reply. Do you have any error in BTCPay Server logs? @woutersamaey you already saw that? |
No worries. |
This is the only log on I have on my end. |
@NicolasDorier unfortunately no, I am unfamiliar with this issue. |
@jwes-dev can you try to update curl? maybe you are using an old version of curl? |
Tried that too. I did find that when I changed my php version from 7.3 to 7.2 it started working until I again sent out couple of invalid requests. |
curl update didn't work. Could this be a security mechanism on BTCPay api against DDOS attacks? |
@jwes-dev no, ywe have an anti ddos protection, but you would get a proper HTTP code message... |
curl returns false Thought this might help |
@jwes-dev no error on btcpayserver side logs? can you give me your curl request here so I can try? |
How do i get btcpayserver side logs? Do you want curl with url to my instance? The curl works perfectly with https://testnet.demo.btcpayserver.org/ |
$Headers = [ $Data = [ $ch = \curl_init(); if ($Headers !== null) { $postData = json_encode($Data); $output = \curl_exec($ch); |
one moment I check. |
same request with postman is working, checking with curl. |
can you run this via command line: curl -i -H "Content-Type: application/json" -H "Authorization: Basic T3ZSMHZNbDBDUmI3MVVvbDc3MXZRSUk3MUcxb25oQlc3RXlCN25oWTBNRA==" -X "POST" --data "{}" https://testnet.demo.btcpayserver.org/invoices It works for me. curl --version
curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Release-Date: 2018-01-24
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL |
let me check |
If it still does not work, try adding the |
ok it's working when I request from my local However curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2) |
|
I think something funky with the curl on the server. What version is it? |
curl 7.64.0 |
dammit, when you copy my command above same issue? |
just a sec let me check |
I tried this command on 3 different server and my local machine, all worked. |
HTTP/2 400 curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2) |
dammit and it happen only on this server? Can you copy paste the output of |
yes just a sec |
curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1d zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3 |
@jwes-dev I am sorry but I am at loss trying to know what is going on. |
let me check |
Got this curl: (18) transfer closed with outstanding read data remaining |
Sorry I don't know, is it possible a proxy is messing up the request?
|
might work. Let me try a different version |
You said we can check btcpayserver logs. How do I get those logs? |
@jwes-dev you can't I can only get it. I checked, nothing wrong on my side. |
Aren't btcpay logs stored on my server hosting the btcpayserver instance? |
@jwes-dev testnet.btcpayserver.org is my server, not yours. |
Terribly sorry. Think there has been a misunderstanding. https://btcpay.maine-bitcoin.com I have no issue with testnet.demo.btcpayserver.org. The issue was with the copy of btcpayserver I have. Terribly sorry about the mixup |
Perhaps I should have posted this along with the issue as the opener :(. Again terribly sorry about the mixup. Could you help me? |
@jwes-dev can you give me a curl request against your server I can test on my side? |
curl --location --request POST 'https://btcpay.maine-bitcoin.com/invoices' The problem was because I did not link a wallet. BUT it should have still returned a error message. In my case it was closing the connection |
I tried on your node:
Sorry I don't really know why you don't have this error and instead connection get cut. |
Works with pairing, get token, etc. But create invoice request fails
I get the below error
Uncaught BTCPayServer\Client\ConnectionException: HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR
I sent out quick consecutive requests where the error said invalid currency. After like 3-4 such requests I started getting this error
The text was updated successfully, but these errors were encountered: